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

◆ allocateObjectByType()

std::optional< Ice::ObjectPrx > IceGrid::SessionPrx::allocateObjectByType ( std::string_view type,
const Ice::Context & context = Ice::noExplicitContext ) const

Allocates an object with the given type.

Parameters
typeThe type of the object.
contextThe request context.
Returns
A proxy to the allocated object. This proxy is never null.
Exceptions
IceGrid::AllocationExceptionThrown when the allocation fails.
See also
setAllocationTimeout
releaseObject