public static final class RequestOptions.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and 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 configured
resultIterationBatchSize. |
RequestOptions |
create() |
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 configured
scriptEvaluationTimeout. |
RequestOptions.Builder |
userAgent(String userAgent)
Sets the userAgent identifier to be sent on the request.
|
public RequestOptions.Builder addAlias(String aliasName, String actualName)
public RequestOptions.Builder addParameter(String name, Object value)
public RequestOptions.Builder overrideRequestId(UUID overrideRequestId)
public RequestOptions.Builder batchSize(int batchSize)
resultIterationBatchSize. If
this value is not set, then the configuration for the Cluster is used unless the
RequestMessage is configured completely by the user.public RequestOptions.Builder timeout(long timeout)
scriptEvaluationTimeout.
If this value is not set, then the configuration for the server is used.public RequestOptions.Builder userAgent(String userAgent)
public RequestOptions create()
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.