Package io.micronaut.nats.reactive
Class ReactorReactivePublisher
java.lang.Object
io.micronaut.nats.reactive.ReactorReactivePublisher
- All Implemented Interfaces:
- ReactivePublisher
@Internal
@EachBean(io.nats.client.Connection.class)
public class ReactorReactivePublisher
extends Object
implements ReactivePublisher
- Author:
- jgrimm
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.reactivestreams.Publisher<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.
- 
Constructor Details- 
ReactorReactivePublisherpublic ReactorReactivePublisher(@Parameter io.nats.client.Connection connection) Constructor.- Parameters:
- connection- The given connection
 
 
- 
- 
Method Details- 
publishDescription copied from interface:ReactivePublisherPublish the message with the provided arguments and return a reactive type that completes successfully when the message is published.- Specified by:
- publishin interface- ReactivePublisher
- Parameters:
- message- The message to publish
- Returns:
- the publisher
 
- 
publishAndReplypublic org.reactivestreams.Publisher<io.nats.client.Message> publishAndReply(io.nats.client.Message message) Description copied from interface:ReactivePublisherPublish the message with the provided arguments and return a reactive type that completes successfully when the reply is received from the reply to queue.- Specified by:
- publishAndReplyin interface- ReactivePublisher
- Parameters:
- message- The message to publish
- Returns:
- The publisher of the received reply
 
 
-