public interface AmqpReceiver extends ReadStream<AmqpMessage>
| Modifier and Type | Method and Description |
|---|---|
String |
address()
The listened address.
|
Future<Void> |
close()
Like
close(Handler) but returns a Future of the asynchronous result |
void |
close(Handler<AsyncResult<Void>> handler)
Closes the receiver.
|
AmqpConnection |
connection()
Gets the connection having created the receiver.
|
AmqpReceiver |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
AmqpReceiver |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
AmqpReceiver |
fetch(long amount)
Fetch the specified
amount of elements. |
AmqpReceiver |
handler(Handler<AmqpMessage> handler)
Set a data handler.
|
AmqpReceiver |
pause()
Pause the
ReadStream, it sets the buffer in fetch mode and clears the actual demand. |
AmqpReceiver |
resume()
Resume reading, and sets the buffer in
flowing mode. |
pipe, pipeTo, pipeToAmqpReceiver exceptionHandler(Handler<Throwable> handler)
ReadStreamexceptionHandler in interface ReadStream<AmqpMessage>exceptionHandler in interface StreamBasehandler - the exception handlerAmqpReceiver handler(Handler<AmqpMessage> handler)
ReadStreamhandler in interface ReadStream<AmqpMessage>AmqpReceiver pause()
ReadStreamReadStream, it sets the buffer in fetch mode and clears the actual demand.
While it's paused, no data will be sent to the data handler.
pause in interface ReadStream<AmqpMessage>AmqpReceiver resume()
ReadStreamflowing mode.
If the ReadStream has been paused, reading will recommence on it.resume in interface ReadStream<AmqpMessage>AmqpReceiver fetch(long amount)
ReadStreamamount of elements. If the ReadStream has been paused, reading will
recommence with the specified amount of items, otherwise the specified amount will
be added to the current stream demand.fetch in interface ReadStream<AmqpMessage>AmqpReceiver endHandler(Handler<Void> endHandler)
ReadStreamendHandler in interface ReadStream<AmqpMessage>String address()
nullvoid close(Handler<AsyncResult<Void>> handler)
handler - handler called when the receiver has been closed, can be nullFuture<Void> close()
close(Handler) but returns a Future of the asynchronous resultAmqpConnection connection()
nullCopyright © 2022 Eclipse. All rights reserved.