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

◆ addObjectAsync()

virtual void IceGrid::AsyncAdmin::addObjectAsync ( std::optional< Ice::ObjectPrx > obj,
std::function< void()> response,
std::function< void(std::exception_ptr)> exception,
const Ice::Current & current )
pure virtual

Adds an object to the object registry.

IceGrid gets the object type by calling ice_id on obj. The object must be reachable.

Parameters
objA proxy to the object. This proxy is never null.
responseThe response callback.
exceptionThe exception callback.
currentThe Current object of the incoming request.
Exceptions
IceGrid::DeploymentExceptionThrown when the object can't be added.
IceGrid::ObjectExistsExceptionThrown when the object is already registered.