BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Public Types | |
typedef Poco::AutoPtr< Answer > | Ptr |
Public Member Functions | |
Answer (AnswerQueue &answerQueue, const bool autoDispose=false) | |
Answer (const Answer &)=delete | |
void | setDirty (bool dirty) |
bool | isDirty () const |
bool | isPending () const |
Poco::Event & | event () |
bool | isEmpty () const |
unsigned long | resultsCount () const |
int | handlersCount () const |
void | setHandlersCount (unsigned long counter) |
void | addResult (Result *result) |
void | notifyUpdated () |
void | waitNotPending (const Poco::Timespan &timeout) |
Result::Ptr | at (size_t position) |
std::vector< Result::Ptr > ::iterator | begin () |
std::vector< Result::Ptr > ::iterator | end () |
void Answer::waitNotPending | ( | const Poco::Timespan & | timeout | ) |
Waiting for the Answer in which Results aren't in PENDING state. Waiting can be blocking or non-blocking. Type of waiting is given by timeout. If timeout is less than 0, waiting is blocking, non-blocking otherwise. If timeout is non-blocking and Answer will not be signalled within the specified time interval, TimeoutException is thrown.