## Uses of Interface
org.apache.tinkerpop.gremlin.server.handler.Session

- Packages that use Session
  Package | Description
  --- | ---
  org.apache.tinkerpop.gremlin.server.handler |

- - ### Uses of Session in org.apache.tinkerpop.gremlin.server.handler

    Classes in org.apache.tinkerpop.gremlin.server.handler that implement Session
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractSession` A base implementation of `Session` which offers some common functionality that matches typical Gremlin Server request response expectations for script, bytecode and graph operations.
    `class` | `MultiTaskSession` A `Session` implementation that queues tasks given to it and executes them in a serial fashion within the same thread which thus allows multiple tasks to be executed in the same transaction.
    `class` | `SingleTaskSession` A simple `Session` implementation that accepts one request, processes it and exits.

    Fields in org.apache.tinkerpop.gremlin.server.handler with type parameters of type Session
    Modifier and Type | Field and Description
    --- | ---
    `protected ConcurrentMap<String,Session>` | UnifiedHandler.`sessions`
    `protected ConcurrentMap<String,Session>` | AbstractSession.`sessions`

    Methods in org.apache.tinkerpop.gremlin.server.handler that return Session
    Modifier and Type | Method and Description
    --- | ---
    `protected Session` | UnifiedHandler.`createMultiTaskSession(SessionTask sessionTask, String sessionId)` Called when creating a `Session` that will be long-lived to extend over multiple requests and therefore process the provided `SessionTask` as well as ones that may arrive in the future.
    `protected Session` | UnifiedHandler.`createSingleTaskSession(SessionTask sessionTask, String sessionId)` Called when creating a single task session where the provided `SessionTask` will be the only one to be executed and can therefore take a more efficient execution path.

    Constructor parameters in org.apache.tinkerpop.gremlin.server.handler with type arguments of type Session
    Constructor and Description
    `MultiTaskSession(SessionTask initialSessionTask, String sessionId, ConcurrentMap<String,Session> sessions)` Creates a new `MultiTaskSession` object providing the initial starting `SessionTask` that gets executed by the session when it starts.
    `SingleTaskSession(SessionTask onlySessionTask, String sessionId, ConcurrentMap<String,Session> sessions)` Constructs a `SingleTaskSession` that has the task to execute supplied on construction.

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