Class PeerDisconnectedAlert

All Implemented Interfaces:
Alert<peer_disconnected_alert>

public final class PeerDisconnectedAlert extends PeerAlert<peer_disconnected_alert>
This alert is generated when a peer is disconnected for any reason (other than the ones covered by PeerErrorAlert).
  • Method Details

    • socketType

      public int socketType()
      The kind of socket this peer was connected over.
      Returns:
      the socket type.
    • operation

      public Operation operation()
      The operation or level where the error occurred.
      Returns:
      the operation.
    • error

      public ErrorCode error()
      Tells you what error caused peer to disconnect.
      Returns:
      the error.
    • reason

      public CloseReason reason()
      The reason the peer disconnected (if specified).
      Returns:
      the reason.