Class RequestMessage
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.driver.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 class
RequestMessage.Builder
Builder class forRequestMessage
.
-
Field Summary
Fields Modifier and Type Field Description static RequestMessage
INVALID
An "invalid" message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestMessage.Builder
build(String op)
static RequestMessage.Builder
from(RequestMessage msg)
Map<String,Object>
getArgs()
String
getOp()
The operation or command to perform as defined by a particular Processor.String
getProcessor()
The name of the Processor that should handle theop
.UUID
getRequestId()
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)
String
toString()
-
-
-
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)
-
-