org::xmlBlaster::client::I_ConnectionProblems Class Reference

Inheritance diagram for org::xmlBlaster::client::I_ConnectionProblems:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~I_ConnectionProblems ()
virtual bool reachedAlive (org::xmlBlaster::client::StatesEnum oldState, org::xmlBlaster::util::dispatch::I_ConnectionsHandler *connectionsHandler)=0
 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.
virtual void reachedDead (org::xmlBlaster::client::StatesEnum oldState, org::xmlBlaster::util::dispatch::I_ConnectionsHandler *connectionsHandler)=0
 This is the callback method invoked from org::xmlBlaster::util::dispatch::ConnectionsHandler informing the client that the connection was lost (i.e.
virtual void reachedPolling (org::xmlBlaster::client::StatesEnum oldState, org::xmlBlaster::util::dispatch::I_ConnectionsHandler *connectionsHandler)=0
 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

Definition at line 29 of file I_ConnectionProblems.h.


Constructor & Destructor Documentation

virtual org::xmlBlaster::client::I_ConnectionProblems::~I_ConnectionProblems (  )  [virtual]

Definition at line 32 of file I_ConnectionProblems.h.


Member Function Documentation

virtual bool org::xmlBlaster::client::I_ConnectionProblems::reachedAlive ( org::xmlBlaster::client::StatesEnum  oldState,
org::xmlBlaster::util::dispatch::I_ConnectionsHandler connectionsHandler 
) [pure 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.

Implemented in org::xmlBlaster::test::TestFailsafe, HelloWorld2, SpecificCallback, SubscribeDemo, and TestEmptyContent.

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::connect(), and org::xmlBlaster::util::dispatch::ConnectionsHandler::timeout().

virtual void org::xmlBlaster::client::I_ConnectionProblems::reachedDead ( org::xmlBlaster::client::StatesEnum  oldState,
org::xmlBlaster::util::dispatch::I_ConnectionsHandler connectionsHandler 
) [pure 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).

Implemented in org::xmlBlaster::test::TestFailsafe, HelloWorld2, SpecificCallback, SubscribeDemo, and TestEmptyContent.

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::disconnect(), org::xmlBlaster::util::dispatch::ConnectionsHandler::timeout(), and org::xmlBlaster::util::dispatch::ConnectionsHandler::toPollingOrDead().

virtual void org::xmlBlaster::client::I_ConnectionProblems::reachedPolling ( org::xmlBlaster::client::StatesEnum  oldState,
org::xmlBlaster::util::dispatch::I_ConnectionsHandler connectionsHandler 
) [pure virtual]

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

Implemented in org::xmlBlaster::test::TestFailsafe, HelloWorld2, SpecificCallback, SubscribeDemo, and TestEmptyContent.

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::queueConnect(), and org::xmlBlaster::util::dispatch::ConnectionsHandler::toPollingOrDead().


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