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

◆ flushBatchRequestsAsync() [2/2]

virtual std::function< void()> Ice::Connection::flushBatchRequestsAsync ( CompressBatch compress,
std::function< void(std::exception_ptr)> exception,
std::function< void(bool)> sent = nullptr )
pure virtual

Flushes any pending batch requests for this connection.

This means all batch requests invoked on fixed proxies associated with the connection.

Parameters
compressSpecifies whether or not the queued batch requests should be compressed before being sent over the wire.
exceptionThe exception callback. The Ice runtime calls this function from an Ice thread pool thread. If you set InitializationData::executor, the executor determines the thread that executes this function.
sentThe sent callback. The Ice runtime calls this function when the batch requests are accepted by the transport. When the batch requests are accepted synchronously, the Ice runtime calls this function from the current thread and passes true as argument. When the batch requests are accepted asynchronously, the Ice runtime calls this function from an Ice thread pool thread and passes false as argument. If you set InitializationData::executor, the executor determines the thread that executes this function in the asynchronous case.
Returns
A function that can be called to cancel the invocation locally.
Exceptions
CommunicatorDestroyedExceptionThrown synchronously when the communicator has been destroyed.