P
- 送受信メッセージのペイロードの型 public interface TcpConnectionHandler<P>
修飾子と型 | メソッドと説明 |
---|---|
void | afterConnected(TcpConnection<P> connection) 接続が正常に確立された後に呼び出されます。 |
void | afterConnectFailure(java.lang.Throwable ex) 接続に失敗したときに呼び出されます。 |
void | afterConnectionClosed() 接続が閉じた後に呼び出されます。 |
void | handleFailure(java.lang.Throwable ex) 接続の失敗を処理します。 |
void | handleMessage(Message<P> message) リモートホストから受信したメッセージを処理します。 |
void afterConnected(TcpConnection<P> connection)
connection
- 接続 void afterConnectFailure(java.lang.Throwable ex)
ex
- 例外 void handleMessage(Message<P> message)
message
- メッセージ void handleFailure(java.lang.Throwable ex)
ex
- 例外 void afterConnectionClosed()