RSB
0.7.0
|
Specification of desired quality of service settings for sending and receiving events. More...
#include <QualityOfServiceSpec.h>
Public Types | |
enum | Ordering { UNORDERED = 10, ORDERED = 20 } |
Specifies the ordering of events for listeners on a informer. More... | |
enum | Reliability { UNRELIABLE = 10, RELIABLE = 20 } |
Specifies the reliability of messages. More... |
Public Member Functions | |
QualityOfServiceSpec () | |
Constructs the default QoS specs for every informers. | |
QualityOfServiceSpec (Ordering ordering, Reliability reliability) | |
Constructs a new QoS specification with desired details. | |
virtual | ~QualityOfServiceSpec () |
Destructor. | |
Ordering | getOrdering () const |
Returns the desired ordering settings. | |
Reliability | getReliability () const |
Returns the desired reliability settings. | |
bool | operator== (const QualityOfServiceSpec &other) const |
Private Attributes | |
Ordering | ordering |
Reliability | reliability |
Friends | |
class | ParticipantConfig |
RSB_EXPORT std::ostream & | operator<< (std::ostream &stream, const QualityOfServiceSpec &spec) |
Specification of desired quality of service settings for sending and receiving events.
Specification given here are required "at least". This means concrete port instances can implement "better" QoS specs without any notification to the clients. Better is decided by the integer value of the specification enums. Higher values mean better services.
Definition at line 46 of file QualityOfServiceSpec.h.
Specifies the ordering of events for listeners on a informer.
Definition at line 56 of file QualityOfServiceSpec.h.
Specifies the reliability of messages.
UNRELIABLE |
Events may be dropped and not be visible to a listener. |
RELIABLE |
Messages are guaranteed to be delivered. Otherwise an error is raised. |
Definition at line 74 of file QualityOfServiceSpec.h.
rsb::QualityOfServiceSpec::QualityOfServiceSpec | ( | ) |
Constructs the default QoS specs for every informers.
Messages are unordered but reliably.
Definition at line 33 of file QualityOfServiceSpec.cpp.
rsb::QualityOfServiceSpec::QualityOfServiceSpec | ( | Ordering | ordering, |
Reliability | reliability | ||
) |
Constructs a new QoS specification with desired details.
ordering | desired ordering type |
reliability | desired reliability type |
Definition at line 37 of file QualityOfServiceSpec.cpp.
|
virtual |
Destructor.
Definition at line 42 of file QualityOfServiceSpec.cpp.
QualityOfServiceSpec::Ordering rsb::QualityOfServiceSpec::getOrdering | ( | ) | const |
Returns the desired ordering settings.
Definition at line 45 of file QualityOfServiceSpec.cpp.
References ordering.
Referenced by rsb::spread::SpreadConnector::setQualityOfServiceSpecs().
QualityOfServiceSpec::Reliability rsb::QualityOfServiceSpec::getReliability | ( | ) | const |
Returns the desired reliability settings.
Definition at line 49 of file QualityOfServiceSpec.cpp.
References reliability.
Referenced by rsb::spread::SpreadConnector::setQualityOfServiceSpecs(), and rsb::spread::InPushConnector::setQualityOfServiceSpecs().
bool rsb::QualityOfServiceSpec::operator== | ( | const QualityOfServiceSpec & | other | ) | const |
Definition at line 53 of file QualityOfServiceSpec.cpp.
References ordering, and reliability.
|
friend |
Definition at line 57 of file QualityOfServiceSpec.cpp.
|
friend |
Definition at line 48 of file QualityOfServiceSpec.h.
|
private |
Definition at line 126 of file QualityOfServiceSpec.h.
Referenced by getOrdering(), rsb::ParticipantConfig::handleOption(), rsb::operator<<(), and operator==().
|
private |
Definition at line 127 of file QualityOfServiceSpec.h.
Referenced by getReliability(), rsb::ParticipantConfig::handleOption(), rsb::operator<<(), and operator==().