| Package | Description | 
|---|---|
| org.apache.tinkerpop.gremlin.server.handler | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractSessionA base implementation of  Sessionwhich offers some common functionality that matches typical Gremlin Server
 request response expectations for script, bytecode and graph operations. | 
| class  | MultiTaskSessionA  Sessionimplementation 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  | SingleTaskSessionA simple  Sessionimplementation that accepts one request, processes it and exits. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected ConcurrentMap<String,Session> | UnifiedHandler. sessions | 
| protected ConcurrentMap<String,Session> | AbstractSession. sessions | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Session | UnifiedHandler. createMultiTaskSession(SessionTask sessionTask,
                      String sessionId)Called when creating a  Sessionthat will be long-lived to extend over multiple requests and therefore
 process the providedSessionTaskas 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  SessionTaskwill be the only one to be
 executed and can therefore take a more efficient execution path. | 
| Constructor and Description | 
|---|
| MultiTaskSession(SessionTask initialSessionTask,
                String sessionId,
                ConcurrentMap<String,Session> sessions)Creates a new  MultiTaskSessionobject providing the initial startingSessionTaskthat gets
 executed by the session when it starts. | 
| SingleTaskSession(SessionTask onlySessionTask,
                 String sessionId,
                 ConcurrentMap<String,Session> sessions)Constructs a  SingleTaskSessionthat has the task to execute supplied on construction. | 
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.