Class CacheConnectionOptions


  • public class CacheConnectionOptions
    extends java.lang.Object
    Instance of this class can be used to define the parameters at the time of client connection with the cache.
    • Constructor Detail

      • CacheConnectionOptions

        public CacheConnectionOptions()
    • Method Detail

      • getServerList

        public java.util.List<ServerInfo> getServerList()
        Gets the list of ServerInfo in the cache.
        Returns:
        The list of server info.
      • setServerList

        public void setServerList​(java.util.List<ServerInfo> value)
        Sets the list of ServerInfo in the cache.
        Parameters:
        value - The list of server info.
      • getIsolationMode

        public IsolationLevel getIsolationMode()
        Gets the Isolation Level of the cache.
        Returns:
        The Isolation Level of the cache.
      • setIsolationLevel

        public void setIsolationLevel​(IsolationLevel value)
        Sets the Isolation Level of the cache.
        Parameters:
        value - The Isolation Level of the cache.
      • getDefaultReadThruProvider

        public java.lang.String getDefaultReadThruProvider()
        Gets the name of the default value of the Read-Through Provider.
        Returns:
        The name of the default value of the Read-Through Provider.
      • setDefaultReadThruProvider

        public void setDefaultReadThruProvider​(java.lang.String value)
        Sets the name of the default value of the Read-Through Provider.
        Parameters:
        value - The name of the default value of the Read-Through Provider.
      • getDefaultWriteThruProvider

        public java.lang.String getDefaultWriteThruProvider()
        Gets the name of the default value of the Write-Through Provider.
        Returns:
        The name of default value of the Write-Through Provider.
      • setDefaultWriteThruProvider

        public void setDefaultWriteThruProvider​(java.lang.String value)
        Sets the name of default value of the Write-Through Provider.
        Parameters:
        value - The name of default value of the Write-Through Provider.
      • getClientBindIP

        public java.lang.String getClientBindIP()
        Gets the IP for the client to be binded with.
        Returns:
        The IP for the client to be binded with.
      • setClientBindIP

        public void setClientBindIP​(java.lang.String value)
        Sets the IP for the client to be binded with.
        Parameters:
        value - The IP for the client to be binded with.
      • getAppName

        public java.lang.String getAppName()
        Gets the application name. If different client applications are connected to server and because of any issue resulting in connection failure with server, after the client again establishes connection, AppName is used to identify these different client applications.
        Returns:
        Name of the client application.
      • setAppName

        public void setAppName​(java.lang.String value)
        Sets the application name. If different client applications are connected to server and because of any issue, which results in connection failure with server, after the client restablishes connection, AppName is used to identify these different client applications.
        Parameters:
        value - Name of the client application.
      • getLoadBalance

        public java.lang.Boolean getLoadBalance()
        When this flag is set, client tries to connect to the optimum server in terms of number of connected clients.
        Returns:
        True, if load balance is enabled otherwise, false.
      • setLoadBalance

        public void setLoadBalance​(java.lang.Boolean value)
        When this flag is set, client tries to connect to the optimum server in terms of number of connected clients.
        Parameters:
        value - The boolean value indicating whether to set load balance as true or false.
      • getLoadBalancerConnectionRetries

        public java.lang.Integer getLoadBalancerConnectionRetries()
        Gets the number of times the load balancer will be prompted to forward the connection to the right machine.
        Returns:
        The load balancer connection retries count.
      • setLoadBalancerConnectionRetries

        public void setLoadBalancerConnectionRetries​(int value)
        Set the number of times the load balancer will be prompted to forward the connection to the right machine.
        Parameters:
        value - of number of retries.
      • getClientRequestTimeOut

        public TimeSpan getClientRequestTimeOut()
        Clients operation timeout specified in seconds. Clients wait for the response from the server for this time. If the response is not received within this time, the operation is not successful.
        Returns:
        The request timeout associated with connection options.
      • setClientRequestTimeOut

        public void setClientRequestTimeOut​(TimeSpan value)
        Client operation timeout specified in seconds. Clients wait for the response from the server for this time. If the response is not received within this time, the operation is not successful.
        Parameters:
        value - The request timeout to be associated with connection options.
      • getConnectionTimeout

        public TimeSpan getConnectionTimeout()
        Client's connection timeout specified in seconds.
        Returns:
        The client connecton timeout in form of a TimeSpan.
      • setConnectionTimeout

        public void setConnectionTimeout​(TimeSpan value)
        Client's connection timeout specified in seconds.
        Parameters:
        value - The client connecton timeout in form of a TimeSpan.
      • getConnectionRetries

        public java.lang.Integer getConnectionRetries()
        Number of tries to reestablish a broken connection between a client and server.
        Returns:
        An integer indicating the number of retries.
      • setConnectionRetries

        public void setConnectionRetries​(java.lang.Integer value)
        Number of tries to reestablish a broken connection between client and a server.
        Parameters:
        value - An integer indicating the number of retries.
      • getRetryInterval

        public TimeSpan getRetryInterval()
        The time, in seconds, to wait between two connection retries.
        Returns:
        The retry interval in form of TimeSpan.
      • setRetryInterval

        public void setRetryInterval​(TimeSpan value)
        The time, in seconds, to wait between two connection retries.
        Parameters:
        value - The retry interval in form of TimeSpan.
      • getRetryConnectionDelay

        public TimeSpan getRetryConnectionDelay()
        The time after which client will try to reconnect to the server.
        Returns:
        The retry connection delay in form of TimeSpan.
      • setRetryConnectionDelay

        public void setRetryConnectionDelay​(TimeSpan value)
        The time after which client will try to reconnect to the server.
        Parameters:
        value - The retry connection delay in form of TimeSpan.
      • getClientCacheMode

        public ClientCacheSyncMode getClientCacheMode()
        Gets ClientCacheSyncMode to specify how the client cache is synchronized with the cluster caches through events.
        Returns:
        The client cache sync mode associated with connection options.
      • setClientCacheMode

        public void setClientCacheMode​(ClientCacheSyncMode value)
        Sets ClientCacheSyncMode to specify how the client cache is synchronized with the cluster caches through events.
        Parameters:
        value - The client cache sync mode to be associated with connection options.
      • getCommandRetries

        public java.lang.Integer getCommandRetries()
        If client application sends request to server for any operation and a response is not received, then the number of retries it will make until it gets response is defined here.
        Returns:
        An integer indicating the number of command retries.
      • setCommandRetries

        public void setCommandRetries​(java.lang.Integer value)
        If client application sends request to server for any operation and a response is not received, then the number of retries it will make until it gets response is defined here.
        Parameters:
        value - An integer indicating the number of command retries.
      • getCommandRetryInterval

        public TimeSpan getCommandRetryInterval()
        In case if client app doesn’t get response against some operation call on server, the command retry interval defines the waiting period before the next attempt to send the operation the server is made. Type integer which defines seconds.
        Returns:
        The command retry interval in form of TimeSpan.
      • setCommandRetryInterval

        public void setCommandRetryInterval​(TimeSpan value)
        In case if client app doesn’t get response against some operation call on server, the command retry interval defines the waiting period before the next attempt to send the operation the server is made. Type integer which defines seconds.
        Parameters:
        value - The command retry interval in form of TimeSpan.
      • getEnableKeepAlive

        public java.lang.Boolean getEnableKeepAlive()
        Gets the keep alive flag.
        Returns:
        True, if keep alive is enabled otherwise, false.
      • setEnableKeepAlive

        public void setEnableKeepAlive​(java.lang.Boolean value)
        Sets the keep alive flag.
        Parameters:
        value - A boolean value that specifies whether to enable keep alive or not.
      • getKeepAliveInterval

        public TimeSpan getKeepAliveInterval()
        Gets the KeepAliveInterval, which will be in effect if the EnableKeepAlive is set to true or is specified true from the client configuration.
        Returns:
        The KeepAliveInterval in form of TimeSpan.
      • setKeepAliveInterval

        public void setKeepAliveInterval​(TimeSpan value)
        Sets the KeepAliveInterval, which will be in effect if the EnableKeepAlive is set to true or is specified true from the client configuration.
        Parameters:
        value - The KeepAliveInterval in form of TimeSpan.
      • getUserCredentials

        public Credentials getUserCredentials()
        Gets Credentials for the authentication of connection with the cache. This information is required when the security is enabled.
        Returns:
        The credentials for the authentication of cache connection.
      • setUserCredentials

        public void setUserCredentials​(Credentials value)
        Sets Credentials for the authentication of connection with the cache. This information is required when the security is enabled.
        Parameters:
        value - The credentials for the authentication of cache connection.
      • getLogLevel

        public LogLevel getLogLevel()
        Gets the LogLevel either as Info, Error or Debug.
        Returns:
        The log level associated with connection options.
      • setLogLevel

        public void setLogLevel​(LogLevel value)
        Sets the LogLevel either as Info, Error or Debug.
        Parameters:
        value - The log level to be associated with connection options.
      • getEnableClientLogs

        public java.lang.Boolean getEnableClientLogs()
        Gets the flag that specifies whether to create client logs or not.
        Returns:
        True, if client logs are enabled otherwise, false.
      • setEnableClientLogs

        public void setEnableClientLogs​(java.lang.Boolean value)
        Sets the flag that specifies whether to create client logs or not.
        Parameters:
        value - The boolean value that specifies whether client logs are enabled or not.
      • clone

        public java.lang.Object clone()
        Creates a new object that is a copy of the current instance.
        Returns:
        Object that is a copy of the current instance.