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

◆ allocateObjectByIdAsync()

virtual void IceGrid::AsyncSession::allocateObjectByIdAsync ( ::Ice::Identity id,
std::function< void(const std::optional< Ice::ObjectPrx > &returnValue)> response,
std::function< void(std::exception_ptr)> exception,
const Ice::Current & current )
pure virtual

Allocates an object.

Parameters
idThe identity of the object to allocate.
responseThe response callback. It accepts:
  • A proxy to the allocated object. This proxy is never null.
exceptionThe exception callback.
currentThe Current object of the incoming request.
Exceptions
IceGrid::AllocationExceptionThrown when the allocation fails.
IceGrid::ObjectNotRegisteredExceptionThrown when an object with the given identity is not registered with the registry.
See also
IceGrid::SessionPrx::setAllocationTimeout
IceGrid::SessionPrx::releaseObject