C++ Actor Framework 1.0.0
|
Interface for listeners that want to be notified when a ucast_sub_state
is disposed, has consumed some items, or when its demand hast changed.
More...
#include <ucast.hpp>
Public Member Functions | |
virtual void | on_subscribed (ucast_sub_state *state) |
Called when an observer subscribes to the ucast_sub_state . | |
virtual void | on_disposed (ucast_sub_state *state, bool from_external)=0 |
Called when the ucast_sub_state is disposed. | |
virtual void | on_demand_changed (ucast_sub_state *) |
Called when the ucast_sub_state receives new demand. | |
virtual void | on_consumed_some (ucast_sub_state *state, size_t old_buffer_size, size_t new_buffer_size) |
Called when the ucast_sub_state has consumed some items. | |
Interface for listeners that want to be notified when a ucast_sub_state
is disposed, has consumed some items, or when its demand hast changed.
|
virtual |
Called when the ucast_sub_state
has consumed some items.
state | The ucast_sub_state that has consumed items. |
old_buffer_size | The number of items in the buffer before consuming items. |
new_buffer_size | The number of items in the buffer after consuming items. |
|
virtual |
Called when an observer subscribes to the ucast_sub_state
.
state | The ucast_sub_state object that was subscribed to. |