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

◆ setAllocationTimeoutAsync() [2/2]

std::function< void()> IceGrid::SessionPrx::setAllocationTimeoutAsync ( std::int32_t timeout,
std::function< void()> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Sets the allocation timeout.

When no object is immediately available for an allocation request, the implementation of IceGrid::SessionPrx::allocateObjectById and IceGrid::SessionPrx::allocateObjectByType waits for the duration of this timeout.

Parameters
timeoutThe timeout in milliseconds.
responseThe response callback.
exceptionThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.