public interface ConnectionLifeCycleListener
Modifier and Type | Method and Description |
---|---|
void |
connectionCreated(Acceptor acceptor,
Connection connection,
ProtocolType protocol)
This method is used both by client connector creation and server connection creation through acceptors.
|
void |
connectionDestroyed(Object connectionID)
called when a connection is destroyed.
|
void |
connectionException(Object connectionID,
HornetQException me)
called when an error occurs on the connection.
|
void |
connectionReadyForWrites(Object connectionID,
boolean ready) |
void connectionCreated(Acceptor acceptor, Connection connection, ProtocolType protocol)
The
- acceptor here will be always null on a client connection created event.connection
- the connection that has been createdvoid connectionDestroyed(Object connectionID)
connectionID
- the connection being destroyed.void connectionException(Object connectionID, HornetQException me)
connectionID
- the id of the connection.me
- the exception.void connectionReadyForWrites(Object connectionID, boolean ready)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.