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

◆ setAllocationTimeoutAsync() [1/2]

std::future< void > IceGrid::SessionPrx::setAllocationTimeoutAsync ( std::int32_t timeout,
const Ice::Context & context = Ice::noExplicitContext ) const
nodiscard

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.
contextThe request context.
Returns
A future that becomes available when the invocation completes.