com.pcbsys.nirvana.base.clientimpl.ConnectCallback Interface Reference

Can be registered with a com.pcbsys.nirvana.base.clientimpl.singleconnection.ClientConnectionManagerImpl to receive notifications every time the connection manager establishes a physical connection to the Universal Messaging server or fails to connect. More...

Inherited by com.pcbsys.nirvana.base.clientimpl.multiconnection.ClientConnectionManagerImpl.ConnectionProtocolVersionValidator.

Public Member Functions

void connectionEstablished (ClientConnectionManager connectionManager) throws nBaseClientException
 Will be called just after connection is established with the server but before handshake is initiated. More...
 
void connectionFailed (ClientConnectionManager connectionManager, nBaseClientException cause)
 Will ne called whenever the client connection manager fails to establish connection. More...
 

Detailed Description

Can be registered with a com.pcbsys.nirvana.base.clientimpl.singleconnection.ClientConnectionManagerImpl to receive notifications every time the connection manager establishes a physical connection to the Universal Messaging server or fails to connect.

Member Function Documentation

void com.pcbsys.nirvana.base.clientimpl.ConnectCallback.connectionEstablished ( ClientConnectionManager  connectionManager) throws nBaseClientException

Will be called just after connection is established with the server but before handshake is initiated.

Parameters
connectionManagerThe client connection manager instance which establishes the connection.
Exceptions
nBaseClientExceptionIf the connection initiation should be aborted.
void com.pcbsys.nirvana.base.clientimpl.ConnectCallback.connectionFailed ( ClientConnectionManager  connectionManager,
nBaseClientException  cause 
)

Will ne called whenever the client connection manager fails to establish connection.

Parameters
connectionManagerThe client connection manager instance which failed to establish connection.
causeThe reason for the connection failure.