Class RequestMessage.Builder
java.lang.Object
org.apache.tinkerpop.gremlin.util.message.RequestMessage.Builder
- Enclosing class:
- RequestMessage
Builder class for
RequestMessage.-
Method Summary
Modifier and TypeMethodDescriptionAdd a custom field to the request.addBulkResults(boolean bulking) addChunkSize(int chunkSize) addLanguage(String language) addMaterializeProperties(String materializeProps) addParameters(String parametersString) Sets the query parameters as a gremlin-lang map literal string.addParameters(Map<String, Object> otherParameters) Sets the query parameters from a map by converting it to a gremlin-lang map literal string usingGremlinLang.convertParametersToString(Map).addTimeoutMillis(long timeout) addTransactionId(String transactionId) Adds a transaction ID to the request message.create()Create the request message given the settings provided to theRequestMessage.Builder.
-
Method Details
-
add
Add a custom field to the request. This is intended for provider-specific fields that interceptors need to include in the serialized request body. -
addLanguage
-
addParameters
Sets the query parameters as a gremlin-lang map literal string. Calling this method multiple times will replace the previous parameters (last-one-wins). -
addParameters
Sets the query parameters from a map by converting it to a gremlin-lang map literal string usingGremlinLang.convertParametersToString(Map). Calling this method multiple times will replace the previous parameters (last-one-wins). -
addG
-
addChunkSize
-
addMaterializeProperties
-
addTimeoutMillis
-
addBulkResults
-
addTransactionId
Adds a transaction ID to the request message. The transaction ID is used to track multi-request transactions over HTTP. All requests within a transaction must include the same transaction ID.- Parameters:
transactionId- the unique transaction identifier (typically a UUID)- Returns:
- this builder
-
create
Create the request message given the settings provided to theRequestMessage.Builder.
-