CallOptionsConfig (Cloud Bigtable HBase Client for Java 0.9.7.1 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

        public CallOptionsConfig(boolean useTimeout,
                                 int unaryRpcTimeoutMs,
                                 int longRpcTimeoutMs)

        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.
      • getLongRpcTimeoutMs

        public int getLongRpcTimeoutMs()

        Getter for the field longRpcTimeoutMs.

        Returns:
        an int.


Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Bigtable Documentation