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 String
OP_PROCESSOR_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestMessage.Builder
add(Object... keyValues)
RequestMessage.Builder
addArg(String key, Object val)
RequestMessage
create()
Create the request message given the settings provided to theRequestMessage.Builder
.RequestMessage.Builder
overrideRequestId(UUID requestId)
Override the request identifier with a specified one, otherwise theRequestMessage.Builder
will randomly generate aUUID
.RequestMessage.Builder
processor(String processor)
If this value is not set in the builder then theRequestMessage.processor
defaults 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.processor
defaults 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.Builder
will 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
.
-
-