Class AbstractConnection

    • Method Detail

      • addListener

        public void addListener​(Connection.Listener listener)
        Deprecated.
        Description copied from interface: Connection

        Adds a listener of connection events.

        Specified by:
        addListener in interface Connection
        Parameters:
        listener - the listener to add
      • removeListener

        public void removeListener​(Connection.Listener listener)
        Deprecated.
        Description copied from interface: Connection

        Removes a listener of connection events.

        Specified by:
        removeListener in interface Connection
        Parameters:
        listener - the listener to remove
      • getInputBufferSize

        public int getInputBufferSize()
        Deprecated.
      • setInputBufferSize

        public void setInputBufferSize​(int inputBufferSize)
        Deprecated.
      • tryFillInterested

        public void tryFillInterested()
        Deprecated.
      • tryFillInterested

        public void tryFillInterested​(Callback callback)
        Deprecated.
      • isFillInterested

        public boolean isFillInterested()
        Deprecated.
      • onFillable

        public abstract void onFillable()
        Deprecated.

        Callback method invoked when the endpoint is ready to be read.

        See Also:
        fillInterested()
      • onOpen

        public void onOpen()
        Deprecated.
        Description copied from interface: Connection

        Callback method invoked when this connection is opened.

        Creators of the connection implementation are responsible for calling this method.

        Specified by:
        onOpen in interface Connection
      • onClose

        public void onClose()
        Deprecated.
        Description copied from interface: Connection

        Callback method invoked when this connection is closed.

        Creators of the connection implementation are responsible for calling this method.

        Specified by:
        onClose in interface Connection
      • close

        public void close()
        Deprecated.
        Description copied from interface: Connection

        Performs a logical close of this connection.

        For simple connections, this may just mean to delegate the close to the associated EndPoint but, for example, SSL connections should write the SSL close message before closing the associated EndPoint.

        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Connection
      • onIdleExpired

        public boolean onIdleExpired()
        Deprecated.
        Description copied from interface: Connection

        Callback method invoked upon an idle timeout event.

        Implementations of this method may return true to indicate that the idle timeout handling should proceed normally, typically failing the EndPoint and causing it to be closed.

        When false is returned, the handling of the idle timeout event is halted immediately and the EndPoint left in the state it was before the idle timeout event.

        Specified by:
        onIdleExpired in interface Connection
        Returns:
        true to let the EndPoint handle the idle timeout, false to tell the EndPoint to halt the handling of the idle timeout.
      • getBytesIn

        public long getBytesIn()
        Deprecated.
        Specified by:
        getBytesIn in interface Connection
      • getBytesOut

        public long getBytesOut()
        Deprecated.
        Specified by:
        getBytesOut in interface Connection
      • toString

        public final java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • toConnectionString

        public java.lang.String toConnectionString()
        Deprecated.