Class Configuration.ConfigurationCustomizer

    • Constructor Detail

      • ConfigurationCustomizer

        public ConfigurationCustomizer()
    • Method Detail

      • getIdleTimeout

        public java.time.Duration getIdleTimeout()
        Description copied from interface: Configuration
        Get the Idle Timeout
        Specified by:
        getIdleTimeout in interface Configuration
        Returns:
        the idle timeout
      • getWriteTimeout

        public java.time.Duration getWriteTimeout()
        Description copied from interface: Configuration
        Get the Write Timeout
        Specified by:
        getWriteTimeout in interface Configuration
        Returns:
        the write timeout
      • setIdleTimeout

        public void setIdleTimeout​(java.time.Duration timeout)
        Description copied from interface: Configuration
        Set the Idle Timeout.
        Specified by:
        setIdleTimeout in interface Configuration
        Parameters:
        timeout - the timeout duration (timeout <= 0 implies an infinite timeout)
      • setWriteTimeout

        public void setWriteTimeout​(java.time.Duration timeout)
        Description copied from interface: Configuration
        Set the Write Timeout.
        Specified by:
        setWriteTimeout in interface Configuration
        Parameters:
        timeout - the timeout duration (timeout <= 0 implies an infinite timeout)
      • getMaxOutgoingFrames

        public int getMaxOutgoingFrames()
        Description copied from interface: Configuration
        Get the maximum number of data frames allowed to be waiting to be sent at any one time. The default value is -1, this indicates there is no limit on how many frames can be queued to be sent by the implementation. If the limit is exceeded, subsequent frames sent are failed with a WritePendingException but the connection is not failed and will remain open.
        Specified by:
        getMaxOutgoingFrames in interface Configuration
        Returns:
        the max number of frames.
      • setMaxOutgoingFrames

        public void setMaxOutgoingFrames​(int maxOutgoingFrames)
        Description copied from interface: Configuration
        Set the maximum number of data frames allowed to be waiting to be sent at any one time. The default value is -1, this indicates there is no limit on how many frames can be queued to be sent by the implementation. If the limit is exceeded, subsequent frames sent are failed with a WritePendingException but the connection is not failed and will remain open.
        Specified by:
        setMaxOutgoingFrames in interface Configuration
        Parameters:
        maxOutgoingFrames - the max number of frames.