com::pcbsys::nirvana::client::nChannelConnectionListener Class Referenceabstract

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. More...
 
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. More...
 

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
connectionIdThe 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
connectionIdThe channel connection's ID
*pSubjectA string array of the subjects associated with the channel connection
nSubjectThe number of subjects
filterA string representation of the filter associated with the channel connection
protocolA string representation of the protocol (i.e. nsp, nhp, nsps or nhps) associated with the channel connection
subscriberNameIf the connection is a named subscriber, this is the name associated with that subscription

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