C++ Actor Framework 0.18
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
caf::stream_sink_driver< Input > Class Template Referenceabstract

Identifies an unbound sequence of messages. More...

#include <stream_sink_driver.hpp>

Inheritance diagram for caf::stream_sink_driver< Input >:
caf::detail::stream_sink_driver_impl< Input, Process, Finalize >

Public Types

using input_type = Input
 
using sink_type = stream_sink< input_type >
 Implemented stream_sink interface.
 
using sink_ptr_type = intrusive_ptr< sink_type >
 Smart pointer to the interface type.
 

Public Member Functions

virtual void finalize (const error &)
 Called after closing the last inbound path.
 
virtual void process (std::vector< input_type > &batch)=0
 Processes a single batch.
 
virtual int32_t acquire_credit (inbound_path *path, int32_t desired)
 Acquires credit on an inbound path.
 

Detailed Description

template<class Input>
class caf::stream_sink_driver< Input >

Identifies an unbound sequence of messages.

Member Function Documentation

◆ acquire_credit()

template<class Input >
virtual int32_t caf::stream_sink_driver< Input >::acquire_credit ( inbound_path path,
int32_t  desired 
)
virtual

Acquires credit on an inbound path.

The calculated credit to fill our queue for two cycles is desired, but the driver is allowed to return any non-negative value.

◆ finalize()

template<class Input >
virtual void caf::stream_sink_driver< Input >::finalize ( const error )
virtual

Called after closing the last inbound path.

Reimplemented in caf::detail::stream_sink_driver_impl< Input, Process, Finalize >.

◆ process()

template<class Input >
virtual void caf::stream_sink_driver< Input >::process ( std::vector< input_type > &  batch)
pure virtual

Processes a single batch.

Implemented in caf::detail::stream_sink_driver_impl< Input, Process, Finalize >.


The documentation for this class was generated from the following file: