CallOptionsConfig (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.config

Class 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
    • Field Detail

      • USE_TIMEOUT_DEFAULT

        public static final boolean USE_TIMEOUT_DEFAULT
        Constant USE_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 use builder()
        Constructor for CallOptionsConfig.
        Parameters:
        useTimeout - a boolean.
        unaryRpcTimeoutMs - an int.
        longRpcTimeoutMs - an int.
    • Method Detail

      • isUseTimeout

        public boolean isUseTimeout()
        isUseTimeout.
        Returns:
        a boolean.
      • getShortRpcTimeoutMs

        public int getShortRpcTimeoutMs()
        Getter for the field shortRpcTimeoutMs.
        Returns:
        an int.
      • getMutateRpcTimeoutMs

        public int getMutateRpcTimeoutMs()
        Getter for the field mutateRpcTimeoutMs.
        Returns:
        an int.
      • getReadStreamRpcTimeoutMs

        public int getReadStreamRpcTimeoutMs()
        Getter for the field readStreamRpcTimeoutMs.
        Returns:
        an int.