com.pcbsys.nirvana.client.nChannelConnectionListener Interface Reference

This interface should be implemented by classes wishing to register to receive callbacks when connections are added or removed to a nirvana channel. More...

Inherited by com.pcbsys.nirvana.client.p2p.nServerService.nServerService.ServiceListener, com.pcbsys.nirvana.client.p2p.nServiceFactory.nServiceFactory.ConnectionListener, com.pcbsys.nirvana.nAdminAPI.nLeafNode.nLeafNode.nChannelListener, and com.pcbsys.nirvana.nAdminAPI.nServiceNode.nServiceNode.Listener.


Public Member Functions

void delConnection (String connectionId)
 This method is called asynchronously when a connection is removed from the nirvana channel.
void newConnection (String connectionId, String[] subject, String filter, String protocol, String subscriberName)
 This method is called asynchronously when a new connection is added to the nirvana channel.

Detailed Description

This interface should be implemented by classes wishing to register to receive callbacks when connections are added or removed to a nirvana channel.

Member Function Documentation

void com.pcbsys.nirvana.client.nChannelConnectionListener.delConnection ( String  connectionId  ) 

This method is called asynchronously when a connection is removed from the nirvana channel.

Parameters:
connectionId The channel connection's ID

void com.pcbsys.nirvana.client.nChannelConnectionListener.newConnection ( String  connectionId,
String[]  subject,
String  filter,
String  protocol,
String  subscriberName 
)

This method is called asynchronously when a new connection is added to the nirvana channel.

Parameters:
connectionId The channel connection's ID
subject A string representation of the subject associated with the channel connection
filter A string representation of the filter associated with the channel connection
protocol A string representation of the protocol (i.e. nsp, nhp, nsps or nhps) associated with the channel connection
subscriberName If the connection is a named subscriber, this is the name associated with that subscription