Class RequestOptions.Builder
java.lang.Object
org.apache.tinkerpop.gremlin.driver.RequestOptions.Builder
- Enclosing class:
- RequestOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddParameter(String name, Object value) Adds a parameter to the request.addParametersString(String parametersString) Sets the parameters as a pre-formatted gremlin-lang map literal string.batchSize(int batchSize) The per client request override for the client and server configuredresultIterationBatchSize.bulkResults(boolean bulking) Sets the bulkResults flag to be sent on the request.create()static RequestOptions.Builderfrom(RequestOptions options) Creates aRequestOptions.Builderpopulated with the values from the providedRequestOptions.Sets the language identifier to be sent on the request.materializeProperties(String materializeProperties) Sets the materializeProperties identifier to be sent on the request.timeoutMillis(long timeoutMillis) The per client request override in milliseconds for the server configuredtimeoutMillis(the maximum time a request is allowed to execute on the server before it times out).transactionId(String id) Sets the transactionId value to be sent on the request.traversalSource(String traversalSource) Sets the traversal source (or graph) alias to rebind to "g" on the request.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Creates aRequestOptions.Builderpopulated with the values from the providedRequestOptions.- Parameters:
options- the options to copy from- Returns:
- a
RequestOptions.Builderwith the copied options
-
traversalSource
Sets the traversal source (or graph) alias to rebind to "g" on the request. -
addParameter
Adds a parameter to the request. The parameter map is converted to a gremlin-lang map literal string when the request is built. This method accumulates parameters into an internal map which is converted oncreate().Cannot be mixed with
addParametersString(String). -
addParametersString
Sets the parameters as a pre-formatted gremlin-lang map literal string. This allows users to pass parameters as a raw gremlin-lang string when using the Client API with a gremlin string.Cannot be mixed with
addParameter(String, Object). -
batchSize
The per client request override for the client and server configuredresultIterationBatchSize. If this value is not set, then the configuration for theClusteris used unless theRequestMessageis configured completely by the user. -
timeoutMillis
The per client request override in milliseconds for the server configuredtimeoutMillis(the maximum time a request is allowed to execute on the server before it times out). If this value is not set, then the configuration for the server is used. -
language
Sets the language identifier to be sent on the request. -
materializeProperties
Sets the materializeProperties identifier to be sent on the request. -
bulkResults
Sets the bulkResults flag to be sent on the request. A value of turn will enable server to bulk results. -
transactionId
Sets the transactionId value to be sent on the request. -
create
-