Schnittstelle IDisconnectCallback


public interface IDisconnectCallback
Callback interface which can be used to get notified about connection losses.
Version:
4.1.0 - 2022-02-03
Autor:
hypfvieh
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    default void
    Called when a client disconnected (only if this is a server/listening connection).
    default void
    Called when the connection is closed due to a connection error (e.g. stream closed).
    default void
    Called when the transport throws an exception while connection was already terminating.
    default void
    Called when the disconnect was intended.
  • Methodendetails

    • disconnectOnError

      default void disconnectOnError(IOException _ex)
      Called when the connection is closed due to a connection error (e.g. stream closed).
      Parameter:
      _ex - exception which was thrown by transport
    • requestedDisconnect

      default void requestedDisconnect(Integer _connectionId)
      Called when the disconnect was intended.
      Parameter:
      _connectionId - connection Id if this was a shared connection, null if last shared or non-shared connection
    • clientDisconnect

      default void clientDisconnect()
      Called when a client disconnected (only if this is a server/listening connection).
    • exceptionOnTerminate

      default void exceptionOnTerminate(IOException _ex)
      Called when the transport throws an exception while connection was already terminating.
      Parameter:
      _ex - exception which was thrown by transport