|
void | startRequest () |
| Update the status of an associated prefix that the request for the associated prefix has been initiated.
|
|
void | deliverResponse (bool successful) |
| Update the status of an associated prefix that an appropriate response has been delivered. The parameter denotes whether the response has been fully successful or not. This influences whether the request would be repeated.
|
|
bool | needsRequest () const |
|
bool | shouldRepeat (const Poco::Timespan &repeatTimeout) const |
| When the response was not fully successful, the request should be repeated. However, we do not want to DoS the remote server. Thus, the repeated requested would be performed after the given repeat timeout. The method returns true only, if the last response was not fully successful and the timeout exceeded sice the last request. More...
|
|
bool DeviceStatusFetcher::PrefixStatus::needsRequest |
( |
| ) |
const |
- Returns
- true if the status for the associated prefix needs to be requested (not requested yet, or not fully successful).
bool DeviceStatusFetcher::PrefixStatus::shouldRepeat |
( |
const Poco::Timespan & |
repeatTimeout | ) |
const |
When the response was not fully successful, the request should be repeated. However, we do not want to DoS the remote server. Thus, the repeated requested would be performed after the given repeat timeout. The method returns true only, if the last response was not fully successful and the timeout exceeded sice the last request.
- Returns
- true whether the request of the status should be repeated
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/core/DeviceStatusFetcher.h
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/core/DeviceStatusFetcher.cpp