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

◆ findAdapterByIdAsync()

virtual void Ice::Locator::findAdapterByIdAsync ( std::string id,
std::function< void(const std::optional< Ice::ObjectPrx > &returnValue)> response,
std::function< void(std::exception_ptr)> exception,
const Ice::Current & current ) const
pure virtual

Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s).

Parameters
idThe adapter ID.
responseThe response callback. It accepts:
  • A dummy proxy with the adapter's endpoints, or null if an object adapter with id was not found.
exceptionThe exception callback.
currentThe Current object of the incoming request.
Exceptions
Ice::AdapterNotFoundExceptionThrown when an object adapter with this adapter ID was not found. The caller should treat this exception like a null return value.