com.pcbsys.nirvana.client.nChannelConnectionListener Class 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...

#include <nChannelConnectionListener.h>

Inheritance diagram for com.pcbsys.nirvana.client.nChannelConnectionListener:

com.pcbsys.nirvana.nAdminAPI.nChannelListener

Public Member Functions

virtual void delConnection (std::string connectionId)=0
 This method is called asynchronously when a connection is removed from the nirvana channel.
virtual void newConnection (std::string connectionId, std::string *pSubject, int nSubject, std::string filter, std::string protocol, std::string subscriberName)=0
 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

virtual void com.pcbsys.nirvana.client.nChannelConnectionListener.delConnection ( std::string  connectionId  )  [pure virtual]

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

Parameters:
connectionId The channel connection's ID

Implemented in com.pcbsys.nirvana.nAdminAPI.nChannelListener.

virtual void com.pcbsys.nirvana.client.nChannelConnectionListener.newConnection ( std::string  connectionId,
std::string *  pSubject,
int  nSubject,
std::string  filter,
std::string  protocol,
std::string  subscriberName 
) [pure virtual]

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

Parameters:
connectionId The channel connection's ID
*pSubject A string array of the subjects associated with the channel connection
nSubject The number of subjects
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

Implemented in com.pcbsys.nirvana.nAdminAPI.nChannelListener.