com.alipay.remoting
Class ConnectionEventListener
java.lang.Object
com.alipay.remoting.ConnectionEventListener
public class ConnectionEventListener
- extends Object
Listen and dispatch connection events.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionEventListener
public ConnectionEventListener()
onEvent
public void onEvent(ConnectionEventType type,
String remoteAddr,
Connection conn)
- Dispatch events.
- Parameters:
type - remoteAddr - conn -
addConnectionEventProcessor
public void addConnectionEventProcessor(ConnectionEventType type,
ConnectionEventProcessor processor)
- Add event processor.
- Parameters:
type - processor -
Copyright © 2018. All rights reserved.