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

◆ releaseObjectAsync()

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

Releases an object that was allocated using IceGrid::SessionPrx::allocateObjectById or IceGrid::SessionPrx::allocateObjectByType.

Parameters
idThe identity of the object to release.
responseThe response callback.
exceptionThe exception callback.
currentThe Current object of the incoming request.
Exceptions
IceGrid::AllocationExceptionThrown when the object can't be released. This can happen when the object is not allocatable or is not allocated by this session.
IceGrid::ObjectNotRegisteredExceptionThrown when an object with the given identity is not registered with the registry.