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

◆ allocateObjectById()

std::optional< Ice::ObjectPrx > IceGrid::SessionPrx::allocateObjectById ( const ::Ice::Identity & id,
const Ice::Context & context = Ice::noExplicitContext ) const

Allocates an object.

Parameters
idThe identity of the object to allocate.
contextThe request context.
Returns
A proxy to the allocated object. This proxy is never null.
Exceptions
IceGrid::AllocationExceptionThrown when the allocation fails.
IceGrid::ObjectNotRegisteredExceptionThrown when an object with the given identity is not registered with the registry.
See also
setAllocationTimeout
releaseObject