Class RequestOptions.Builder
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.driver.RequestOptions.Builder
-
- Enclosing class:
- RequestOptions
public static final class RequestOptions.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestOptions.Builder
addG(String graphOrTraversalSource)
The aliases to set on the request.RequestOptions.Builder
addParameter(String name, Object value)
The parameters to pass on the request.RequestOptions.Builder
batchSize(int batchSize)
The per client request override for the client and server configuredresultIterationBatchSize
.RequestOptions.Builder
bulkResults(boolean bulking)
Sets the bulkResults flag to be sent on the request.RequestOptions
create()
RequestOptions.Builder
language(String language)
Sets the language identifier to be sent on the request.RequestOptions.Builder
materializeProperties(String materializeProperties)
Sets the materializeProperties identifier to be sent on the request.RequestOptions.Builder
timeout(long timeout)
The per client request override in milliseconds for the server configuredevaluationTimeout
.
-
-
-
Method Detail
-
addG
public RequestOptions.Builder addG(String graphOrTraversalSource)
The aliases to set on the request.
-
addParameter
public RequestOptions.Builder addParameter(String name, Object value)
The parameters to pass on the request.
-
batchSize
public RequestOptions.Builder batchSize(int batchSize)
The per client request override for the client and server configuredresultIterationBatchSize
. If this value is not set, then the configuration for theCluster
is used unless theRequestMessage
is configured completely by the user.
-
timeout
public RequestOptions.Builder timeout(long timeout)
The per client request override in milliseconds for the server configuredevaluationTimeout
. If this value is not set, then the configuration for the server is used.
-
language
public RequestOptions.Builder language(String language)
Sets the language identifier to be sent on the request.
-
materializeProperties
public RequestOptions.Builder materializeProperties(String materializeProperties)
Sets the materializeProperties identifier to be sent on the request.
-
bulkResults
public RequestOptions.Builder bulkResults(boolean bulking)
Sets the bulkResults flag to be sent on the request. A value of turn will enable server to bulk results.
-
create
public RequestOptions create()
-
-