presto-main/src/main/java/io/prestosql/dispatcher/QueuedStatementResource.java/Query/cancel
class Query:        public synchronized void cancel()
        {
            querySubmissionFuture.addListener(() -> dispatchManager.cancelQuery(queryId), directExecutor());
        }