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() |
io.vertx.proton.ProtonReceiver |
unwrap() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance, newInstance
newInstance
public 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 StreamBase
public 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)
ReadStream
exceptionHandler
in interface ReadStream<AmqpMessage>
exceptionHandler
in interface StreamBase
handler
- the exception handlerpublic AmqpReceiver handler(Handler<AmqpMessage> handler)
ReadStream
handler
in interface ReadStream<AmqpMessage>
public AmqpReceiver pause()
ReadStream
ReadStream
, 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()
ReadStream
flowing
mode.
If the ReadStream
has been paused, reading will recommence on it.resume
in interface ReadStream<AmqpMessage>
public AmqpReceiver fetch(long amount)
ReadStream
amount
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)
ReadStream
endHandler
in interface ReadStream<AmqpMessage>
public String address()
null
public void close(Handler<AsyncResult<Void>> handler)
handler
- handler called when the receiver has been closed, can be null
public void close()
public AmqpConnection connection()
null
public io.vertx.proton.ProtonReceiver unwrap()
public static AmqpReceiver newInstance(AmqpReceiver arg)
Copyright © 2024 Eclipse. All rights reserved.