Class RequestMessage
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.util.message.RequestMessage
-
public final class RequestMessage extends Object
The model for a request message sent to the server.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestMessage.BuilderBuilder class forRequestMessage.
-
Field Summary
Fields Modifier and Type Field Description static RequestMessageINVALIDAn "invalid" message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestMessage.Builderbuild(String op)static RequestMessage.Builderfrom(RequestMessage msg)Map<String,Object>getArgs()StringgetOp()The operation or command to perform as defined by a particular Processor.StringgetProcessor()The name of the Processor that should handle theop.UUIDgetRequestId()The id of the current request and is used to track the message within Gremlin Server and in its response.<T> Optional<T>optionalArgs(String key)StringtoString()
-
-
-
Field Detail
-
INVALID
public static final RequestMessage INVALID
An "invalid" message. Used internally only.
-
-
Method Detail
-
getRequestId
public UUID getRequestId()
The id of the current request and is used to track the message within Gremlin Server and in its response. This value should be unique per request made.
-
getOp
public String getOp()
The operation or command to perform as defined by a particular Processor.
-
getProcessor
public String getProcessor()
The name of the Processor that should handle theop. Defaults to the standard processor if not specified.
-
from
public static RequestMessage.Builder from(RequestMessage msg)
-
build
public static RequestMessage.Builder build(String op)
-
-