Class KeepAliveFilter

    • Constructor Detail

      • KeepAliveFilter

        public KeepAliveFilter​(KeepAliveMessageFactory messageFactory,
                               IdleStatus interestedIdleStatus)
        Creates a new instance with the default properties. The default property values are:
        Parameters:
        messageFactory - The message factory to use
        interestedIdleStatus - The IdleStatus the filter is interested in
      • KeepAliveFilter

        public KeepAliveFilter​(KeepAliveMessageFactory messageFactory,
                               KeepAliveRequestTimeoutHandler policy)
        Creates a new instance with the default properties. The default property values are:
        • interestedIdleStatus - IdleStatus.READER_IDLE
        • keepAliveRequestInterval - 60 (seconds)
        • keepAliveRequestTimeout - 30 (seconds)
        Parameters:
        messageFactory - The message factory to use
        policy - The TimeOut handler policy
      • KeepAliveFilter

        public KeepAliveFilter​(KeepAliveMessageFactory messageFactory,
                               IdleStatus interestedIdleStatus,
                               KeepAliveRequestTimeoutHandler policy)
        Creates a new instance with the default properties. The default property values are:
        • keepAliveRequestInterval - 60 (seconds)
        • keepAliveRequestTimeout - 30 (seconds)
        Parameters:
        messageFactory - The message factory to use
        interestedIdleStatus - The IdleStatus the filter is interested in
        policy - The TimeOut handler policy
      • KeepAliveFilter

        public KeepAliveFilter​(KeepAliveMessageFactory messageFactory,
                               IdleStatus interestedIdleStatus,
                               KeepAliveRequestTimeoutHandler policy,
                               int keepAliveRequestInterval,
                               int keepAliveRequestTimeout)
        Creates a new instance.
        Parameters:
        messageFactory - The message factory to use
        interestedIdleStatus - The IdleStatus the filter is interested in
        policy - The TimeOut handler policy
        keepAliveRequestInterval - the interval to use
        keepAliveRequestTimeout - The timeout to use