protected void | 
AbstractSession.closeTransaction(SessionTask sessionTask,
                Transaction.Status status) | 
 Closes a transaction with commit or rollback. 
 | 
protected void | 
AbstractSession.closeTransactionSafely(SessionTask sessionTask,
                      Transaction.Status status) | 
 Tries to close the transaction but will catch exceptions and log them. 
 | 
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.  
 | 
protected Optional<Iterator<?>> | 
AbstractSession.fromBytecode(SessionTask sessionTask,
            Bytecode bytecode) | 
 | 
protected Iterator<?> | 
AbstractSession.fromScript(SessionTask sessionTask,
          String script) | 
Constructs an  Iterator from the results of a script evaluation provided in the  SessionTask.  
 | 
protected Map<String,Object> | 
AbstractSession.generateResponseMetaData(SessionTask sessionTask,
                        ResponseStatusCode code,
                        Iterator<?> itty) | 
 | 
protected Map<String,Object> | 
AbstractSession.generateStatusAttributes(SessionTask sessionTask,
                        ResponseStatusCode code,
                        Iterator<?> itty) | 
 | 
GremlinScriptEngine | 
AbstractSession.getScriptEngine(SessionTask sessionTask,
               String language) | 
 | 
GremlinScriptEngine | 
MultiTaskSession.getScriptEngine(SessionTask sessionTask,
               String language) | 
 | 
protected void | 
AbstractSession.handleException(SessionTask sessionTask,
               Throwable t) | 
  | 
protected void | 
AbstractSession.handleGraphOperation(SessionTask sessionTask,
                    Bytecode bytecode,
                    Graph graph) | 
If  Bytecode is detected to contain a  GraphOp then it gets processed by this method.  
 | 
protected void | 
AbstractSession.handleIterator(SessionTask sessionTask,
              Iterator<?> itty) | 
 Provides a generic way of iterating a result set back to the client. 
 | 
protected GremlinExecutor | 
MultiTaskSession.initializeGremlinExecutor(SessionTask sessionTask) | 
  | 
protected void | 
AbstractSession.iterateComplete(SessionTask sessionTask,
               Iterator<?> itty) | 
 | 
protected Frame | 
AbstractSession.makeFrame(SessionTask sessionTask,
         List<Object> aggregate,
         ResponseStatusCode code,
         Iterator<?> itty) | 
  | 
protected Bindings | 
AbstractSession.mergeBindingsFromRequest(SessionTask sessionTask,
                        Bindings bindings) | 
  | 
protected void | 
AbstractSession.process(SessionTask sessionTask) | 
  | 
protected void | 
AbstractSession.startTransaction(SessionTask sessionTask) | 
 | 
boolean | 
MultiTaskSession.submitTask(SessionTask sessionTask) | 
  | 
boolean | 
Session.submitTask(SessionTask sessionTask) | 
 Adds a task for session to complete. 
 | 
boolean | 
SingleTaskSession.submitTask(SessionTask sessionTask) | 
This implementation only take a single  SessionTask on construction - no additional tasks can be
 submitted.  
 |