public class ConnectionEventListener extends Object
| 构造器和说明 |
|---|
ConnectionEventListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConnectionEventProcessor(ConnectionEventType type,
ConnectionEventProcessor processor)
Add event processor.
|
void |
onEvent(ConnectionEventType type,
String remoteAddress,
Connection connection)
Dispatch events.
|
public void onEvent(ConnectionEventType type, String remoteAddress, Connection connection)
type - ConnectionEventTyperemoteAddress - remoting addressconnection - Connectionpublic void addConnectionEventProcessor(ConnectionEventType type, ConnectionEventProcessor processor)
type - ConnectionEventTypeprocessor - ConnectionEventProcessorCopyright © 2020. All rights reserved.