Delivery of TThreadedInbound to an actor system on another thread. More...
#include <threaded_inbound.hpp>
Public Member Functions | |
| TQueuedDelivery (TActorSystem &system, size_t limit=DefaultLimit) | |
| ~TQueuedDelivery () | |
| Destroys the coroutine first: it waits on the notifier and pops the queue. | |
| TQueuedDelivery (const TQueuedDelivery &)=delete | |
| TQueuedDelivery & | operator= (const TQueuedDelivery &)=delete |
| bool | Full () const |
| I/O side: true while the connections must not read. | |
| void | Deliver (std::unique_ptr< TEnvelopeBatch > batch) |
| I/O side. | |
| size_t | QueuedBytes () const |
| Bytes handed over and not passed to Send yet. Any thread. | |
Static Public Attributes | |
| static constexpr size_t | DefaultLimit = 16 * 1024 * 1024 |
Delivery of TThreadedInbound to an actor system on another thread.
Full() is true while the bytes handed over and not passed to Send yet reach limit. A connection that it stops looks again only after 1 ms, so limit must hold more than a millisecond of the actor side's work: under backpressure the delivery passes at most about limit per millisecond (16 GB/s with the default, 1 GB/s with 1 MiB).