Package io.adamantic.quicknote
Interface Receiver
- All Superinterfaces:
AutoCloseable,Channel,Flow.Publisher<Message>
Abstracts an incoming channel.
Using the official reactive streams API implementation from
the Java SDK.
- Author:
- Domenico Barra - domenico@adamantic.io
-
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribe(String routing, Flow.Subscriber<? super Message> subscriber) Creates a new subscription for incoming messages over a specific routing key (i.e.Methods inherited from interface java.util.concurrent.Flow.Publisher
subscribe
-
Method Details
-
subscribe
Creates a new subscription for incoming messages over a specific routing key (i.e. not "all messages", just a part).- Parameters:
routing- the routing key to listen forsubscriber- the message subscriber (i.e. the object that will receive the messages)- Throws:
IOException- if the subscription cannot be established
-