#include <org/limitless/seqeron/app/OutstandingWork.hpp>
|
| void | onRequest (const Key &key, Work work) |
| | Records a request seen on the sequenced stream, on every replica.
|
| |
| void | onReply (const Key &key) |
| | Records a request's sequenced reply, on every replica: the request is answered.
|
| |
| void | onNotLeader () |
| |
| void | onReplyNotEmitted (const Key &key) |
| | Records that a reply offer failed, so no sequenced reply will come.
|
| |
| template<typename DispatchFn > |
| int | dispatchUndispatched (DispatchFn &&dispatch) |
| | Offers each undispatched outstanding request, in request order.
|
| |
| std::size_t | size () const noexcept |
| |
| bool | isDispatched (const Key &key) const |
| |
◆ dispatchUndispatched()
template<typename Work , typename Key = std::int64_t>
template<typename DispatchFn >
Offers each undispatched outstanding request, in request order.
Leader only, while the gate is open.
- Parameters
-
| dispatch | called as dispatch(key, work); returns false to stop the sweep, and must not call back into the tracker |
- Returns
- how many were dispatched by this call
◆ isDispatched()
template<typename Work , typename Key = std::int64_t>
◆ onNotLeader()
template<typename Work , typename Key = std::int64_t>
◆ onReply()
template<typename Work , typename Key = std::int64_t>
Records a request's sequenced reply, on every replica: the request is answered.
- Parameters
-
| key | the answered request's key |
◆ onReplyNotEmitted()
template<typename Work , typename Key = std::int64_t>
Records that a reply offer failed, so no sequenced reply will come.
The request stays outstanding.
- Parameters
-
| key | the request whose reply was not emitted |
◆ onRequest()
template<typename Work , typename Key = std::int64_t>
Records a request seen on the sequenced stream, on every replica.
Idempotent on the key, keeping its position.
- Parameters
-
| key | the request's key, normally its clusterSeqNo |
| work | what dispatching it takes |
◆ size()
template<typename Work , typename Key = std::int64_t>
The documentation for this class was generated from the following file: