public class AmqpReceiver extends Object implements ReadStream<AmqpMessage>
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<AmqpReceiver> |
__TYPE_ARG |
| Constructor and Description |
|---|
AmqpReceiver(AmqpReceiver delegate) |
AmqpReceiver(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
String |
address()
The listened address.
|
void |
close()
Closes the receiver.
|
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.
|
boolean |
equals(Object o) |
AmqpReceiver |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
AmqpReceiver |
fetch(long amount)
Fetch the specified
amount of elements. |
AmqpReceiver |
getDelegate() |
AmqpReceiver |
handler(Handler<AmqpMessage> handler)
Set a data handler.
|
int |
hashCode() |
static AmqpReceiver |
newInstance(AmqpReceiver arg) |
AmqpReceiver |
pause()
Pause the
ReadStream, it sets the buffer in fetch mode and clears the actual demand. |
Pipe<AmqpMessage> |
pipe()
Pause this stream and return a to transfer the elements of this stream to a destination .
|
void |
pipeTo(WriteStream<AmqpMessage> dst)
Pipe this
ReadStream to the WriteStream. |
void |
pipeTo(WriteStream<AmqpMessage> dst,
Handler<AsyncResult<Void>> handler)
Pipe this
ReadStream to the WriteStream. |
AmqpReceiver |
resume()
Resume reading, and sets the buffer in
flowing mode. |
Single<Void> |
rxClose()
Closes the receiver.
|
Single<Void> |
rxPipeTo(WriteStream<AmqpMessage> dst)
Pipe this
ReadStream to the WriteStream. |
Observable<AmqpMessage> |
toObservable() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstance, newInstancenewInstancepublic static final io.vertx.lang.rx.TypeArg<AmqpReceiver> __TYPE_ARG
public AmqpReceiver(AmqpReceiver delegate)
public AmqpReceiver(Object delegate)
public AmqpReceiver getDelegate()
getDelegate in interface ReadStream<AmqpMessage>getDelegate in interface StreamBasepublic Observable<AmqpMessage> toObservable()
toObservable in interface ReadStream<AmqpMessage>public Pipe<AmqpMessage> pipe()
WriteStream.pipe in interface ReadStream<AmqpMessage>public void pipeTo(WriteStream<AmqpMessage> dst, Handler<AsyncResult<Void>> handler)
ReadStream to the WriteStream.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler will be
called with the result.
pipeTo in interface ReadStream<AmqpMessage>dst - the destination write streamhandler - public void pipeTo(WriteStream<AmqpMessage> dst)
ReadStream to the WriteStream.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler will be
called with the result.
pipeTo in interface ReadStream<AmqpMessage>dst - the destination write streampublic Single<Void> rxPipeTo(WriteStream<AmqpMessage> dst)
ReadStream to the WriteStream.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler will be
called with the result.
rxPipeTo in interface ReadStream<AmqpMessage>dst - the destination write streampublic AmqpReceiver exceptionHandler(Handler<Throwable> handler)
ReadStreamexceptionHandler in interface ReadStream<AmqpMessage>exceptionHandler in interface StreamBasehandler - the exception handlerpublic AmqpReceiver handler(Handler<AmqpMessage> handler)
ReadStreamhandler in interface ReadStream<AmqpMessage>public 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>public AmqpReceiver resume()
ReadStreamflowing mode.
If the ReadStream has been paused, reading will recommence on it.resume in interface ReadStream<AmqpMessage>public 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>public AmqpReceiver endHandler(Handler<Void> endHandler)
ReadStreamendHandler in interface ReadStream<AmqpMessage>public String address()
nullpublic void close(Handler<AsyncResult<Void>> handler)
handler - handler called when the receiver has been closed, can be nullpublic void close()
public AmqpConnection connection()
nullpublic static AmqpReceiver newInstance(AmqpReceiver arg)
Copyright © 2021 Eclipse. All rights reserved.