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

◆ subscribeAndGetPublisherAsync()

virtual void IceStorm::AsyncTopic::subscribeAndGetPublisherAsync ( QoS theQoS,
std::optional< Ice::ObjectPrx > subscriber,
std::function< void(const std::optional< Ice::ObjectPrx > &returnValue)> response,
std::function< void(std::exception_ptr)> exception,
const Ice::Current & current )
pure virtual

Subscribes to this topic.

Parameters
theQoSThe quality of service parameters for this subscription.
subscriberThe subscriber's proxy. This proxy cannot be null.
responseThe response callback. It accepts:
  • The per-subscriber publisher proxy. This proxy is never null.
exceptionThe exception callback.
currentThe Current object of the incoming request.
Exceptions
IceStorm::AlreadySubscribedThrown when subscriber is already subscribed.
IceStorm::BadQoSThrown when theQoS is unavailable or invalid.
See also
IceStorm::TopicPrx::unsubscribe