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

◆ allocateObjectByTypeAsync()

virtual void IceGrid::AsyncSession::allocateObjectByTypeAsync ( std::string type,
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 with the given type.

Parameters
typeThe type of the object.
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.
See also
IceGrid::SessionPrx::setAllocationTimeout
IceGrid::SessionPrx::releaseObject