com.google.cloud.bigtable.config
Class CallOptionsConfig
- java.lang.Object
-
- com.google.cloud.bigtable.config.CallOptionsConfig
-
- All Implemented Interfaces:
- Serializable
public class CallOptionsConfig extends Object implements Serializable
Experimental options to turn on timeout options.CallOptions
supports other settings as well, which this configuration object could help set.- Version:
- $Id: $Id
- Author:
- sduskis
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
CallOptionsConfig.Builder
-
Field Summary
Fields Modifier and Type Field and Description static int
LONG_TIMEOUT_MS_DEFAULT
The default duration to wait before timing out RPCs.static int
SHORT_TIMEOUT_MS_DEFAULT
The default duration to wait before timing out RPCs.static boolean
USE_TIMEOUT_DEFAULT
ConstantUSE_TIMEOUT_DEFAULT=false
-
Constructor Summary
Constructors Constructor and Description CallOptionsConfig(boolean useTimeout, int unaryRpcTimeoutMs, int longRpcTimeoutMs)
Deprecated.Please usebuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static CallOptionsConfig.Builder
builder()
boolean
equals(Object obj)
int
getLongRpcTimeoutMs()
Deprecated.Please usegetMutateRpcTimeoutMs()
orgetReadStreamRpcTimeoutMs()
.int
getMutateRpcTimeoutMs()
Getter for the fieldmutateRpcTimeoutMs
.int
getReadStreamRpcTimeoutMs()
Getter for the fieldreadStreamRpcTimeoutMs
.int
getShortRpcTimeoutMs()
Getter for the fieldshortRpcTimeoutMs
.int
getTimeoutMs()
Deprecated.boolean
isUseTimeout()
isUseTimeout.CallOptionsConfig.Builder
toBuilder()
toBuilder.String
toString()
-
-
-
Field Detail
-
USE_TIMEOUT_DEFAULT
public static final boolean USE_TIMEOUT_DEFAULT
ConstantUSE_TIMEOUT_DEFAULT=false
- See Also:
- Constant Field Values
-
SHORT_TIMEOUT_MS_DEFAULT
public static final int SHORT_TIMEOUT_MS_DEFAULT
The default duration to wait before timing out RPCs. 1 minute is probably too long for most RPCs, but the intent is to have a conservative timeout by default and aim for user overrides.- See Also:
- Constant Field Values
-
LONG_TIMEOUT_MS_DEFAULT
public static final int LONG_TIMEOUT_MS_DEFAULT
The default duration to wait before timing out RPCs. 10 minute is probably too long for most RPCs, but the intent is to have a conservative timeout by default and aim for user overrides. There could very well be 10 minute scans, so keep the value conservative for most cases and allow user overrides as needed.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CallOptionsConfig
@Deprecated public CallOptionsConfig(boolean useTimeout, int unaryRpcTimeoutMs, int longRpcTimeoutMs)
Deprecated. Please usebuilder()
Constructor for CallOptionsConfig.- Parameters:
useTimeout
- a boolean.unaryRpcTimeoutMs
- an int.longRpcTimeoutMs
- an int.
-
-
Method Detail
-
builder
public static CallOptionsConfig.Builder builder()
-
isUseTimeout
public boolean isUseTimeout()
isUseTimeout.- Returns:
- a boolean.
-
getTimeoutMs
@Deprecated public int getTimeoutMs()
Deprecated.Getter for the fieldshortRpcTimeoutMs
. UsegetShortRpcTimeoutMs()
instead.- Returns:
- an int.
-
getShortRpcTimeoutMs
public int getShortRpcTimeoutMs()
Getter for the fieldshortRpcTimeoutMs
.- Returns:
- an int.
-
getLongRpcTimeoutMs
@Deprecated public int getLongRpcTimeoutMs()
Deprecated. Please usegetMutateRpcTimeoutMs()
orgetReadStreamRpcTimeoutMs()
.Getter for the fieldlongRpcTimeoutMs
.- Returns:
- an int.
-
getMutateRpcTimeoutMs
public int getMutateRpcTimeoutMs()
Getter for the fieldmutateRpcTimeoutMs
.- Returns:
- an int.
-
getReadStreamRpcTimeoutMs
public int getReadStreamRpcTimeoutMs()
Getter for the fieldreadStreamRpcTimeoutMs
.- Returns:
- an int.
-
toBuilder
public CallOptionsConfig.Builder toBuilder()
toBuilder.- Returns:
- a
CallOptionsConfig.Builder
object.
-
-