public abstract class AbstractOpProcessor extends Object implements OpProcessor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
manageTransactions |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOpProcessor(boolean manageTransactions) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
attemptCommit(RequestMessage msg,
GraphManager graphManager,
boolean strict) |
protected static void |
attemptRollback(RequestMessage msg,
GraphManager graphManager,
boolean strict) |
protected void |
handleIterator(Context context,
Iterator itty)
Provides a generic way of iterating a result set back to the client.
|
protected static Frame |
makeFrame(ChannelHandlerContext ctx,
RequestMessage msg,
MessageSerializer serializer,
boolean useBinary,
List<Object> aggregate,
ResponseStatusCode code) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, selectcloseprotected void handleIterator(Context context, Iterator itty) throws TimeoutException, InterruptedException
Settings.serializedResponseTimeout configuration and break the serialization process if
it begins to take too long to do so, throwing a TimeoutException in such
cases.context - The Gremlin Server Context object containing settings, request message, etc.itty - The result to iteratorTimeoutException - if the time taken to serialize the entire result set exceeds the allowable time.InterruptedExceptionprotected static Frame makeFrame(ChannelHandlerContext ctx, RequestMessage msg, MessageSerializer serializer, boolean useBinary, List<Object> aggregate, ResponseStatusCode code) throws Exception
Exceptionprotected static void attemptCommit(RequestMessage msg, GraphManager graphManager, boolean strict)
protected static void attemptRollback(RequestMessage msg, GraphManager graphManager, boolean strict)
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.