org.apache.tinkerpop.gremlin.server

## Class Context

- java.lang.Object
- - org.apache.tinkerpop.gremlin.server.Context

-     public final class Context
      extends Object

  The context of Gremlin Server within which a particular request is made.
  Author:
    Stephen Mallette (http://stephen.genoprime.com)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Context(RequestMessage requestMessage, ChannelHandlerContext ctx, Settings settings, GraphManager graphManager, GremlinExecutor gremlinExecutor, ScheduledExecutorService scheduledExecutorService)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ChannelHandlerContext` | `getChannelHandlerContext()` Gets the Netty context.
    `GraphManager` | `getGraphManager()` Gets the set of `Graph` objects configured in Gremlin Server.
    `GremlinExecutor` | `getGremlinExecutor()` Gets the executor chosen to evaluate incoming Gremlin scripts based on the request.
    `RequestMessage` | `getRequestMessage()` Gets the current request to Gremlin Server.
    `ScheduledExecutorService` | `getScheduledExecutorService()`
    `Settings` | `getSettings()` Gets the current configuration of Gremlin Server.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Context

          public Context(RequestMessage requestMessage,
                         ChannelHandlerContext ctx,
                         Settings settings,
                         GraphManager graphManager,
                         GremlinExecutor gremlinExecutor,
                         ScheduledExecutorService scheduledExecutorService)

  - ### Method Detail

    - #### getScheduledExecutorService

          public ScheduledExecutorService getScheduledExecutorService()

    - #### getRequestMessage

          public RequestMessage getRequestMessage()

      Gets the current request to Gremlin Server.

    - #### getChannelHandlerContext

          public ChannelHandlerContext getChannelHandlerContext()

      Gets the Netty context.

    - #### getSettings

          public Settings getSettings()

      Gets the current configuration of Gremlin Server.

    - #### getGraphManager

          public GraphManager getGraphManager()

      Gets the set of `Graph` objects configured in Gremlin Server.

    - #### getGremlinExecutor

          public GremlinExecutor getGremlinExecutor()

      Gets the executor chosen to evaluate incoming Gremlin scripts based on the request.

Copyright © 2013–2018 Apache Software Foundation. All rights reserved.