public class SessionOpProcessor extends AbstractEvalOpProcessor
OpProcessor
implementation that handles ScriptEngine
script evaluation in the context of a session.AbstractEvalOpProcessor.BindingSupplier<T>
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_SESSION_TIMEOUT
Configuration setting for how long a session will be available before it timesout.
|
static long |
DEFAULT_SESSION_TIMEOUT
Default timeout for a session is eight hours.
|
static String |
OP_PROCESSOR_NAME |
manageTransactions
Constructor and Description |
---|
SessionOpProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
evalOp(Context context) |
ThrowingConsumer<Context> |
getEvalOp()
Provides an operation for evaluating a Gremlin script.
|
String |
getName()
The name of the processor which requests must refer to "processor" field on a request.
|
protected Optional<ThrowingConsumer<Context>> |
validateEvalMessage(RequestMessage message) |
evalOpInternal, handleIterator, select
public static final String OP_PROCESSOR_NAME
public static final String CONFIG_SESSION_TIMEOUT
public static final long DEFAULT_SESSION_TIMEOUT
public String getName()
OpProcessor
public ThrowingConsumer<Context> getEvalOp()
AbstractEvalOpProcessor
getEvalOp
in class AbstractEvalOpProcessor
protected Optional<ThrowingConsumer<Context>> validateEvalMessage(RequestMessage message) throws OpProcessorException
validateEvalMessage
in class AbstractEvalOpProcessor
OpProcessorException
protected void evalOp(Context context) throws OpProcessorException
OpProcessorException
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.