use of io.crossbar.autobahn.wamp.messages.Publish in project autobahn-java by crossbario.
the class Session method reallyPublish.
private CompletableFuture<Publication> reallyPublish(String topic, List<Object> args, Map<String, Object> kwargs, PublishOptions options) {
throwIfNotConnected();
CompletableFuture<Publication> future = new CompletableFuture<>();
long requestID = mIDGenerator.next();
mPublishRequests.put(requestID, new PublishRequest(requestID, future));
if (options != null) {
send(new Publish(requestID, topic, args, kwargs, options.acknowledge, options.excludeMe, options.retain));
} else {
send(new Publish(requestID, topic, args, kwargs, true, true, false));
}
return future;
}
Aggregations