public interface ReactivePublisher
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<java.lang.Void> |
publish(io.nats.client.Message message)
Publish the message with the provided arguments and return
a reactive type that completes successfully when the message
is published.
|
org.reactivestreams.Publisher<io.nats.client.Message> |
publishAndReply(io.nats.client.Message message)
Publish the message with the provided arguments and return
a reactive type that completes successfully when the reply
is received from the reply to queue.
|
org.reactivestreams.Publisher<java.lang.Void> publish(io.nats.client.Message message)
message
- The message to publishorg.reactivestreams.Publisher<io.nats.client.Message> publishAndReply(io.nats.client.Message message)
message
- The message to publish