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
.
timeout | The timeout in milliseconds. |
response | The response callback. |
exception | The exception callback. |
sent | The sent callback. |
context | The request context. |