Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ onConnectedWriters()

template<typename Key, typename Value, typename UpdateTag>
void DataStorm::Reader< Key, Value, UpdateTag >::onConnectedWriters ( std::function< void(std::vector< std::string >)> init,
std::function< void(CallbackReason, std::string)> update )
noexcept

Calls the given functions to provide the initial set of connected writers and when a new writer connects or disconnects.

If callback functions are already set, they will be replaced. The init callback is always called after this method returns to provide the initial set of connected writers. The update callback is called when new writers connect or disconnect.

Parameters
initThe function to call with the initial set of connected writers.
updateThe function to call when a new writer connects or disconnects.

Definition at line 1050 of file DataStorm.h.