olp-cpp-sdk
1.22.0
|
Flushes requests in a stream layer. More...
#include <FlushRequest.h>
Public Member Functions | |
FlushRequest (const FlushRequest &)=default | |
FlushRequest (FlushRequest &&)=default | |
FlushRequest & | operator= (const FlushRequest &)=default |
FlushRequest & | operator= (FlushRequest &&)=default |
int | GetNumberOfRequestsToFlush () const |
Gets the number of partitions (PublishDataRequest ) to be flushed. More... | |
FlushRequest & | WithNumberOfRequestsToFlush (int num_requests) |
Sets the number of partitions (PublishDataRequest ) to be flushed. More... | |
Flushes requests in a stream layer.
|
inline |
Gets the number of partitions (PublishDataRequest
) to be flushed.
The default value is 0, which means that all queued StreamLayerClient
requests are flushed.
|
inline |
Sets the number of partitions (PublishDataRequest
) to be flushed.
num_requests | The maximum number of partitions be flushed by StreamLayerClient . If the value is negative, nothing is flushed. To flush all requests, set the value to 0. |