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

◆ getPublisherAsync() [2/2]

std::function< void()> IceStorm::TopicPrx::getPublisherAsync ( std::function< void(std::optional< Ice::ObjectPrx >)> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Gets a proxy to a publisher object for this topic.

To publish data to a topic, a publisher calls this operation and then creates a proxy with the publisher type from this proxy. If a replicated IceStorm deployment is used, this call may return a replicated proxy.

Parameters
responseThe response callback. It accepts:
  • A proxy to publish data on this topic. This proxy is never null.
exceptionThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.