public void setTimeoutExecutor(final ScheduledFuture<?> timeoutExecutor) {
        synchronized (timeoutExecutorLock) {
            this.timeoutExecutor = timeoutExecutor;

            // Timeout was grabbed before we got here, this means the query executed before the timeout was created.
            if (timeoutExecutorGrabbed) {
                // Cancel the timeout.
                this.timeoutExecutor.cancel(true);
            }
        }
    }
The context of Gremlin Server within which a particular request is made.

@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/Context.java