Class ConnectionTuning

  • All Implemented Interfaces:
    Parameter

    public class ConnectionTuning
    extends java.lang.Object
    implements Parameter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(com.solacesystems.jms.SolConnectionFactory cf)  
      java.lang.Integer getConnectRetries()
      This property is used to specify the number of times to retry data connection attempts.
      java.lang.Integer getConnectRetriesPerHost()
      This property is used to specify the number of times to retry data connection attempts to a single host before moving on to the next host in the list.
      java.lang.Integer getConnectTimeoutInMillis()
      This property is used to specify the timeout in milliseconds on a data connection attempt.
      java.lang.Integer getReadTimeoutInMillis()
      This property is used to specify the timeout in milliseconds for reading a reply from the appliance.
      java.lang.Integer getReconnectRetries()
      This property is used to specify the number of times to attempt a reconnect once the data connection to the appliance has been lost.
      java.lang.Integer getReconnectRetryWaitInMillis()
      This property is used to specify the amount of time to wait in milliseconds between reconnect attempts.
      java.lang.Boolean getTcpNoDelay()
      This property is used to specify whether to set the TCP_NODELAY option.
      void setConnectRetries​(java.lang.Integer connectRetries)
      This property is used to specify the number of times to retry data connection attempts.
      void setConnectRetriesPerHost​(java.lang.Integer connectRetriesPerHost)
      This property is used to specify the number of times to retry data connection attempts to a single host before moving on to the next host in the list.
      void setConnectTimeoutInMillis​(java.lang.Integer connectTimeoutInMillis)
      This property is used to specify the timeout in milliseconds on a data connection attempt.
      void setReadTimeoutInMillis​(java.lang.Integer readTimeoutInMillis)
      This property is used to specify the timeout in milliseconds for reading a reply from the appliance.
      void setReconnectRetries​(java.lang.Integer reconnectRetries)
      This property is used to specify the number of times to attempt a reconnect once the data connection to the appliance has been lost.
      void setReconnectRetryWaitInMillis​(java.lang.Integer reconnectRetryWaitInMillis)
      This property is used to specify the amount of time to wait in milliseconds between reconnect attempts.
      void setTcpNoDelay​(java.lang.Boolean tcpNoDelay)
      This property is used to specify whether to set the TCP_NODELAY option.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectionTuning

        public ConnectionTuning()
    • Method Detail

      • apply

        public void apply​(com.solacesystems.jms.SolConnectionFactory cf)
        Specified by:
        apply in interface Parameter
      • getConnectRetries

        public java.lang.Integer getConnectRetries()
        This property is used to specify the number of times to retry data connection attempts.
      • setConnectRetries

        public void setConnectRetries​(java.lang.Integer connectRetries)
        This property is used to specify the number of times to retry data connection attempts.
      • getConnectRetriesPerHost

        public java.lang.Integer getConnectRetriesPerHost()
        This property is used to specify the number of times to retry data connection attempts to a single host before moving on to the next host in the list.
      • setConnectRetriesPerHost

        public void setConnectRetriesPerHost​(java.lang.Integer connectRetriesPerHost)
        This property is used to specify the number of times to retry data connection attempts to a single host before moving on to the next host in the list.
      • getConnectTimeoutInMillis

        public java.lang.Integer getConnectTimeoutInMillis()
        This property is used to specify the timeout in milliseconds on a data connection attempt.
      • setConnectTimeoutInMillis

        public void setConnectTimeoutInMillis​(java.lang.Integer connectTimeoutInMillis)
        This property is used to specify the timeout in milliseconds on a data connection attempt.
      • getReadTimeoutInMillis

        public java.lang.Integer getReadTimeoutInMillis()
        This property is used to specify the timeout in milliseconds for reading a reply from the appliance.
      • setReadTimeoutInMillis

        public void setReadTimeoutInMillis​(java.lang.Integer readTimeoutInMillis)
        This property is used to specify the timeout in milliseconds for reading a reply from the appliance.
      • getReconnectRetries

        public java.lang.Integer getReconnectRetries()
        This property is used to specify the number of times to attempt a reconnect once the data connection to the appliance has been lost.
      • setReconnectRetries

        public void setReconnectRetries​(java.lang.Integer reconnectRetries)
        This property is used to specify the number of times to attempt a reconnect once the data connection to the appliance has been lost.
      • getReconnectRetryWaitInMillis

        public java.lang.Integer getReconnectRetryWaitInMillis()
        This property is used to specify the amount of time to wait in milliseconds between reconnect attempts.
      • setReconnectRetryWaitInMillis

        public void setReconnectRetryWaitInMillis​(java.lang.Integer reconnectRetryWaitInMillis)
        This property is used to specify the amount of time to wait in milliseconds between reconnect attempts.
      • getTcpNoDelay

        public java.lang.Boolean getTcpNoDelay()
        This property is used to specify whether to set the TCP_NODELAY option.
      • setTcpNoDelay

        public void setTcpNoDelay​(java.lang.Boolean tcpNoDelay)
        This property is used to specify whether to set the TCP_NODELAY option.