public interface ConnectionHandler
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getConnectTimeout() |
int |
getReadTimeout() |
int |
getWriteTimeout() |
void |
onClose(Connection conn) |
void |
onConnect(Connection conn) |
void |
onConnected(Connection conn) |
void |
onError(Connection conn,
Exception e) |
void |
onReceived(Connection conn,
ByteBuffer data,
Integer id) |
void |
onSended(Connection conn,
ByteBuffer data,
Integer id) |
void |
onTimeout(Connection conn,
TimeoutType type) |
void onConnect(Connection conn)
void onConnected(Connection conn)
void onReceived(Connection conn, ByteBuffer data, Integer id)
void onSended(Connection conn, ByteBuffer data, Integer id)
void onClose(Connection conn)
void onError(Connection conn, Exception e)
void onTimeout(Connection conn, TimeoutType type)
int getReadTimeout()
int getWriteTimeout()
int getConnectTimeout()
Copyright © 2018. All rights reserved.