@Internal @EachBean(value=io.nats.client.Connection.class) public class RxJavaReactivePublisher extends java.lang.Object implements ReactivePublisher
Constructor and Description |
---|
RxJavaReactivePublisher(io.nats.client.Connection connection)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<java.lang.Void> |
publish(PublishState publishState)
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(PublishState publishState)
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.
|
public RxJavaReactivePublisher(@Parameter io.nats.client.Connection connection)
connection
- The given connectionpublic org.reactivestreams.Publisher<java.lang.Void> publish(PublishState publishState)
ReactivePublisher
publish
in interface ReactivePublisher
publishState
- The publishing datapublic org.reactivestreams.Publisher<io.nats.client.Message> publishAndReply(PublishState publishState)
ReactivePublisher
publishAndReply
in interface ReactivePublisher
publishState
- The publishing data