インターフェース TcpConnectionHandler<P>

型パラメーター:
P - 送受信メッセージのペイロードの型
すべての既知のサブインターフェース:
ConnectionHandlingStompSessionStompTcpConnectionHandler<P>
すべての既知の実装クラス:
DefaultStompSession

public interface TcpConnectionHandler<P>
受信メッセージの処理を含む、TCP 接続のライフサイクルイベントを管理するための契約。
導入:
4.0
作成者:
Rossen Stoyanchev
  • メソッドの詳細

    • afterConnected

      void afterConnected(TcpConnection<P> connection)
      接続が正常に確立された後に呼び出されます。
      パラメーター:
      connection - 接続
    • afterConnectFailure

      void afterConnectFailure(ThrowableSE ex)
      接続に失敗したときに呼び出されます。
      パラメーター:
      ex - 例外
    • handleMessage

      void handleMessage(Message<P> message)
      リモートホストから受信したメッセージを処理します。
      パラメーター:
      message - メッセージ
    • handleFailure

      void handleFailure(ThrowableSE ex)
      接続の失敗を処理します。
      パラメーター:
      ex - 例外
    • afterConnectionClosed

      void afterConnectionClosed()
      接続が閉じた後に呼び出されます。