Class RequestMessage.Builder
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.util.message.RequestMessage.Builder
-
- Enclosing class:
- RequestMessage
public static final class RequestMessage.Builder extends Object
Builder class forRequestMessage.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOP_PROCESSOR_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestMessage.Builderadd(Object... keyValues)RequestMessage.BuilderaddArg(String key, Object val)RequestMessagecreate()Create the request message given the settings provided to theRequestMessage.Builder.RequestMessage.BuilderoverrideRequestId(UUID requestId)Override the request identifier with a specified one, otherwise theRequestMessage.Builderwill randomly generate aUUID.RequestMessage.Builderprocessor(String processor)If this value is not set in the builder then theRequestMessage.processordefaults to the standard op processor (empty string).
-
-
-
Field Detail
-
OP_PROCESSOR_NAME
public static final String OP_PROCESSOR_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
processor
public RequestMessage.Builder processor(String processor)
If this value is not set in the builder then theRequestMessage.processordefaults to the standard op processor (empty string).- Parameters:
processor- the name of the processor
-
overrideRequestId
public RequestMessage.Builder overrideRequestId(UUID requestId)
Override the request identifier with a specified one, otherwise theRequestMessage.Builderwill randomly generate aUUID.
-
addArg
public RequestMessage.Builder addArg(String key, Object val)
-
add
public RequestMessage.Builder add(Object... keyValues)
-
create
public RequestMessage create()
Create the request message given the settings provided to theRequestMessage.Builder.
-
-