Package | Description |
---|---|
org.apache.tinkerpop.gremlin.server.handler |
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. |
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<String,Session> |
AbstractSession.sessions |
protected ConcurrentMap<String,Session> |
UnifiedHandler.sessions |
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 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–2021 Apache Software Foundation. All rights reserved.