Interface ProtocolStack.Listener

  • Enclosing class:

    public static interface ProtocolStack.Listener
    Callback "interface" for changes in the state of ProtocolStack.
    • Method Detail

      • onClosed

        void onClosed​(ProtocolStack<?> stack,
                      IOException cause)
        When the stack was closed normally or abnormally due to an error.
        stack - the stack that has closed.
        cause - if the stack is closed abnormally, this parameter represents an exception that has triggered it. Otherwise null.