@InternalExtensionOnly public class CallOptionsConfig extends Object implements Serializable
CallOptions
supports other settings as
well, which this configuration object could help set.Modifier and Type | Class and Description |
---|---|
static class |
CallOptionsConfig.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
LONG_TIMEOUT_MS_DEFAULT
The default duration to wait before timing out idempotent RPCs operation.
|
static int |
SHORT_TIMEOUT_MS_DEFAULT
The default duration to wait before timing out RPCs (default value: 20 seconds).
|
static boolean |
USE_TIMEOUT_DEFAULT
Constant
USE_TIMEOUT_DEFAULT=false |
Constructor and Description |
---|
CallOptionsConfig(boolean useTimeout,
int unaryRpcTimeoutMs,
int longRpcTimeoutMs)
Deprecated.
Please use
builder() |
Modifier and Type | Method and Description |
---|---|
static CallOptionsConfig.Builder |
builder() |
boolean |
equals(Object obj) |
int |
getLongRpcTimeoutMs()
Deprecated.
Please use
getMutateRpcTimeoutMs() or getReadStreamRpcTimeoutMs() . |
com.google.common.base.Optional<Integer> |
getMutateRpcAttemptTimeoutMs()
Getter for the field
mutateRpcAttemptTimeoutMs . |
int |
getMutateRpcTimeoutMs()
Getter for the field
mutateRpcTimeoutMs . |
com.google.common.base.Optional<Integer> |
getReadStreamRpcAttemptTimeoutMs()
Getter for the field
readStreamRpcAttemptTimeoutMs . |
int |
getReadStreamRpcTimeoutMs()
Getter for the field
readStreamRpcTimeoutMs . |
com.google.common.base.Optional<Integer> |
getShortRpcAttemptTimeoutMs()
Getter for the field
shortRpcAttemptTimeoutMs . |
int |
getShortRpcTimeoutMs()
Getter for the field
shortRpcTimeoutMs . |
int |
getTimeoutMs()
Deprecated.
|
int |
hashCode() |
boolean |
isUseTimeout()
isUseTimeout.
|
CallOptionsConfig.Builder |
toBuilder()
toBuilder.
|
String |
toString() |
public static final boolean USE_TIMEOUT_DEFAULT
USE_TIMEOUT_DEFAULT=false
public static final int SHORT_TIMEOUT_MS_DEFAULT
public static final int LONG_TIMEOUT_MS_DEFAULT
@Deprecated public CallOptionsConfig(boolean useTimeout, int unaryRpcTimeoutMs, int longRpcTimeoutMs)
builder()
useTimeout
- a boolean.unaryRpcTimeoutMs
- an int.longRpcTimeoutMs
- an int.public static CallOptionsConfig.Builder builder()
public boolean isUseTimeout()
@Deprecated public int getTimeoutMs()
shortRpcTimeoutMs
. Use getShortRpcTimeoutMs()
instead.public int getShortRpcTimeoutMs()
shortRpcTimeoutMs
.@BetaApi(value="The API for getting attempt timeouts is not yet stable and may change in the future") public com.google.common.base.Optional<Integer> getShortRpcAttemptTimeoutMs()
shortRpcAttemptTimeoutMs
.
If the Optional value is not present, the attempt timeout will leverage shortRpcTimeoutMs
.
@Deprecated public int getLongRpcTimeoutMs()
getMutateRpcTimeoutMs()
or getReadStreamRpcTimeoutMs()
.longRpcTimeoutMs
.public int getMutateRpcTimeoutMs()
mutateRpcTimeoutMs
.@BetaApi(value="The API for getting attempt timeouts is not yet stable and may change in the future") public com.google.common.base.Optional<Integer> getMutateRpcAttemptTimeoutMs()
mutateRpcAttemptTimeoutMs
.
If the Optional value is not present, the attempt timeout will leverage mutateRpcTimeoutMs
.
public int getReadStreamRpcTimeoutMs()
readStreamRpcTimeoutMs
.@BetaApi(value="The API for getting attempt timeouts is not yet stable and may change in the future") public com.google.common.base.Optional<Integer> getReadStreamRpcAttemptTimeoutMs()
readStreamRpcAttemptTimeoutMs
.
If the Optional value is not present, the attempt timeout will leverage readStreamRpcTimeoutMs
.
public CallOptionsConfig.Builder toBuilder()
CallOptionsConfig.Builder
object.