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
addAlias(String aliasName, String actualName)
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
create()
RequestOptions.Builder
language(String language)
Sets the language identifier to be sent on the request.RequestOptions.Builder
overrideRequestId(UUID overrideRequestId)
Overrides the identifier to be sent on the request.RequestOptions.Builder
timeout(long timeout)
The per client request override in milliseconds for the server configuredevaluationTimeout
.RequestOptions.Builder
userAgent(String userAgent)
Sets the userAgent identifier to be sent on the request.
-
-
-
Method Detail
-
addAlias
public RequestOptions.Builder addAlias(String aliasName, String actualName)
The aliases to set on the request.
-
addParameter
public RequestOptions.Builder addParameter(String name, Object value)
The parameters to pass on the request.
-
overrideRequestId
public RequestOptions.Builder overrideRequestId(UUID overrideRequestId)
Overrides the identifier to be sent 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.
-
userAgent
public RequestOptions.Builder userAgent(String userAgent)
Sets the userAgent identifier to be sent on the request.
-
language
public RequestOptions.Builder language(String language)
Sets the language identifier to be sent on the request.
-
create
public RequestOptions create()
-
-