RSB
0.7.0
|
This class serves as a base class for event receiving strategy classes that deliver rsb::Event s to rsb::Handler s without triggering by the receiving object. More...
#include <PushEventReceivingStrategy.h>
Public Member Functions | |
virtual void | setHandlerErrorStrategy (const ParticipantConfig::ErrorStrategy &strategy)=0 |
Defines the strategy to use for handling dispatching errors to the client handler. | |
virtual void | addHandler (rsb::HandlerPtr handler, const bool &wait)=0 |
Adds a new handler that will be notified about new events. | |
virtual void | removeHandler (rsb::HandlerPtr handler, const bool &wait)=0 |
Removes a handler that will will then not be notified anymore. | |
Public Member Functions inherited from rsb::eventprocessing::EventReceivingStrategy | |
virtual | ~EventReceivingStrategy () |
virtual void | addFilter (filter::FilterPtr filter)=0 |
virtual void | removeFilter (filter::FilterPtr filter)=0 |
virtual void | handle (EventPtr event)=0 |
Dispatches the event to the listener. | |
Public Member Functions inherited from rsb::eventprocessing::Handler | |
virtual | ~Handler () |
This class serves as a base class for event receiving strategy classes that deliver rsb::Event s to rsb::Handler s without triggering by the receiving object.
To achieve this, a list of handlers is maintained and dispatching of events is done by calling each handler.
Definition at line 49 of file PushEventReceivingStrategy.h.
|
pure virtual |
Adds a new handler that will be notified about new events.
handler | handler to add |
wait | if set to true , this method must only return after the handler has been install completely so that the next event will be delivered to it |
Implemented in rsb::eventprocessing::ParallelEventReceivingStrategy, and rsb::eventprocessing::DirectEventReceivingStrategy.
|
pure virtual |
Removes a handler that will will then not be notified anymore.
handler | handler to remove |
wait | if set to true , this method must only return after the handler has been removed completely and will not receive any more notifications |
Implemented in rsb::eventprocessing::ParallelEventReceivingStrategy, and rsb::eventprocessing::DirectEventReceivingStrategy.
|
pure virtual |
Defines the strategy to use for handling dispatching errors to the client handler.
strategy | the new strategy to use |
Implemented in rsb::eventprocessing::ParallelEventReceivingStrategy, and rsb::eventprocessing::DirectEventReceivingStrategy.