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 SummaryNested Classes Modifier and Type Class Description static classRequestMessage.BuilderBuilder class forRequestMessage.
 - 
Field SummaryFields Modifier and Type Field Description static RequestMessageINVALIDAn "invalid" message.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestMessage.Builderbuild(String op)static RequestMessage.Builderfrom(RequestMessage msg)<T> TgetArg(String key)<T> TgetArgOrDefault(String key, T def)Map<String,Object>getArgs()AMapof arguments that are supplied to theop.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- 
INVALIDpublic static final RequestMessage INVALID An "invalid" message. Used internally only.
 
- 
 - 
Method Detail- 
getRequestIdpublic 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.
 - 
getOppublic String getOp() The operation or command to perform as defined by a particular Processor.
 - 
getProcessorpublic String getProcessor() The name of the Processor that should handle theop. Defaults to the standard processor if not specified.
 - 
getArgspublic Map<String,Object> getArgs() AMapof arguments that are supplied to theop. Eachopaccepts different argument, so consult the documentation for a particular one to understand what is expected.
 - 
getArgpublic <T> T getArg(String key) 
 - 
getArgOrDefaultpublic <T> T getArgOrDefault(String key, T def) 
 - 
frompublic static RequestMessage.Builder from(RequestMessage msg) 
 - 
buildpublic static RequestMessage.Builder build(String op) 
 
- 
 
-