com.alipay.remoting
Class ConnectionEventListener

java.lang.Object
  extended by com.alipay.remoting.ConnectionEventListener

public class ConnectionEventListener
extends Object

Listen and dispatch connection events.


Constructor Summary
ConnectionEventListener()
           
 
Method Summary
 void addConnectionEventProcessor(ConnectionEventType type, ConnectionEventProcessor processor)
          Add event processor.
 void onEvent(ConnectionEventType type, String remoteAddr, Connection conn)
          Dispatch events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionEventListener

public ConnectionEventListener()
Method Detail

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.