SpecificCallback Class Reference

Helper class to receive the connection specific callback messages. More...

Inheritance diagram for SpecificCallback:

Inheritance graph
[legend]
Collaboration diagram for SpecificCallback:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SpecificCallback (GlobalRef global)
string update (string &sessionId, UpdateKey &updateKey, unsigned char *content, long contentSize, UpdateQos &updateQos)
 SpecificCallback (GlobalRef global)
string update (string &sessionId, UpdateKey &updateKey, unsigned char *content, long contentSize, UpdateQos &updateQos)
 Callbacks from xmlBlaster arrive here.
bool reachedAlive (StatesEnum, I_ConnectionsHandler *)
 This is the callback method invoked from org::xmlBlaster::util::dispatch::ConnectionsHandler notifying the client that a connection has been established and that its status is now ALIVE.
void reachedDead (StatesEnum, I_ConnectionsHandler *)
 This is the callback method invoked from org::xmlBlaster::util::dispatch::ConnectionsHandler informing the client that the connection was lost (i.e.
void reachedPolling (StatesEnum, I_ConnectionsHandler *)
 This is the callback method invoked from org::xmlBlaster::util::dispatch::ConnectionsHandler informing the client that the connection state has changed to POLLING.

Detailed Description

Helper class to receive the connection specific callback messages.

One instance of this will be used for each connection.

Additionally we listen on connection change events (for example if the xmlBlaster server disappears).

Definition at line 19 of file Leak.cpp.


Constructor & Destructor Documentation

SpecificCallback::SpecificCallback ( GlobalRef  global  ) 

Definition at line 25 of file Leak.cpp.

SpecificCallback::SpecificCallback ( GlobalRef  global  ) 

Definition at line 33 of file MultiConnectDemo.cpp.


Member Function Documentation

string SpecificCallback::update ( string &  sessionId,
UpdateKey updateKey,
unsigned char *  content,
long  contentSize,
UpdateQos updateQos 
)

Definition at line 29 of file Leak.cpp.

References org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::client::qos::GetReturnQos::toXml(), and org::xmlBlaster::client::key::MsgKeyBase::toXml().

string SpecificCallback::update ( string &  sessionId,
UpdateKey updateKey,
unsigned char *  content,
long  contentSize,
UpdateQos updateQos 
)

Callbacks from xmlBlaster arrive here.

Definition at line 40 of file MultiConnectDemo.cpp.

References org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::client::qos::GetReturnQos::toXml(), and org::xmlBlaster::client::key::MsgKeyBase::toXml().

bool SpecificCallback::reachedAlive ( StatesEnum  oldState,
I_ConnectionsHandler connectionsHandler 
) [virtual]

This is the callback method invoked from org::xmlBlaster::util::dispatch::ConnectionsHandler notifying the client that a connection has been established and that its status is now ALIVE.

It has a bool return which informs the org::xmlBlaster::util::dispatch::ConnectionsHandler what to do with the entries in the queue. If you return 'true', then the queue is flushed (i.e. the contents of the queue are sent to xmlBlaster). If you return 'false', then the contents of the queue are left untouched. You can then erase all entries manually. Note that this method is invoked also when the connection has been established the first time.

Implements org::xmlBlaster::client::I_ConnectionProblems.

Definition at line 52 of file MultiConnectDemo.cpp.

References org::xmlBlaster::util::I_Log::info().

void SpecificCallback::reachedDead ( StatesEnum  oldState,
I_ConnectionsHandler connectionsHandler 
) [virtual]

This is the callback method invoked from org::xmlBlaster::util::dispatch::ConnectionsHandler informing the client that the connection was lost (i.e.

when the state of the connectionsHandler has gone to DEAD).

Implements org::xmlBlaster::client::I_ConnectionProblems.

Definition at line 58 of file MultiConnectDemo.cpp.

References org::xmlBlaster::util::I_Log::info().

void SpecificCallback::reachedPolling ( StatesEnum  oldState,
I_ConnectionsHandler connectionsHandler 
) [virtual]

This is the callback method invoked from org::xmlBlaster::util::dispatch::ConnectionsHandler informing the client that the connection state has changed to POLLING.

Implements org::xmlBlaster::client::I_ConnectionProblems.

Definition at line 63 of file MultiConnectDemo.cpp.

References org::xmlBlaster::util::I_Log::info().


The documentation for this class was generated from the following files: