Class AmqpReceiver
- All Implemented Interfaces:
MutinyDelegate,ReadStream<AmqpMessage>,StreamBase
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
AmqpReceiver
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.core.streams.ReadStream
ReadStream.ReadStreamImpl<T>Nested classes/interfaces inherited from interface io.vertx.mutiny.core.streams.StreamBase
StreamBase.StreamBaseImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAmqpReceiver(io.vertx.amqp.AmqpReceiver delegate) Create a new instance ofAmqpReceiverdelegating to the given (non-null) instance ofAmqpReceiver.AmqpReceiver(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionaddress()The listened address.io.smallrye.mutiny.Uni<Void>close()Closes the receiver.voidCloses the receiver.Closes the receiver.Gets the connection having created the receiver.endHandler(Runnable endHandler) Set an end handler.booleanexceptionHandler(Consumer<Throwable> handler) Set an exception handler on the read stream.fetch(long amount) Fetch the specifiedamountof elements.io.vertx.amqp.AmqpReceiverGet the delegate instance.handler(Consumer<AmqpMessage> handler) Set a data handler.inthashCode()static AmqpReceivernewInstance(io.vertx.amqp.AmqpReceiver delegate) Creates a new instance of theAmqpReceiver.pause()Pause theReadStream, it sets the buffer infetchmode and clears the actual demand.pipe()Pause this stream and return aPipeto transfer the elements of this stream to a destinationWriteStream.io.smallrye.mutiny.Uni<Void>pipeTo(WriteStream<AmqpMessage> dst) Pipe thisReadStreamto theWriteStream.voidPipe thisReadStreamto theWriteStream.Pipe thisReadStreamto theWriteStream.resume()Resume reading, and sets the buffer inflowingmode.io.smallrye.mutiny.Multi<AmqpMessage>toMulti()toString()io.vertx.proton.ProtonReceiverunwrap()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
AmqpReceiver
public AmqpReceiver(io.vertx.amqp.AmqpReceiver delegate) Create a new instance ofAmqpReceiverdelegating to the given (non-null) instance ofAmqpReceiver. -
AmqpReceiver
-
-
Method Details
-
getDelegate
public io.vertx.amqp.AmqpReceiver getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfaceReadStream<AmqpMessage>- Specified by:
getDelegatein interfaceStreamBase- Returns:
- the delegate instance
-
close
Closes the receiver.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
AmqpReceiver.close()
-
closeAndAwait
public void closeAndAwait()Closes the receiver.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- See Also:
-
AmqpReceiver.close()
-
closeAndForget
Closes the receiver.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AmqpReceiver.close()
-
pipeTo
Pipe thisReadStreamto theWriteStream.Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
pipeToin interfaceReadStream<AmqpMessage>- Parameters:
dst- the destination write stream- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.amqp.AmqpReceiver#pipeTo(WriteStream)
-
pipeToAndAwait
Pipe thisReadStreamto theWriteStream.Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
dst- the destination write stream- See Also:
-
io.vertx.amqp.AmqpReceiver#pipeTo(WriteStream)
-
pipeToAndForget
Pipe thisReadStreamto theWriteStream.Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
dst- the destination write stream- Returns:
- The current instance to chain operations if needed.
- See Also:
-
io.vertx.amqp.AmqpReceiver#pipeTo(WriteStream)
-
exceptionHandler
Description copied from interface:ReadStreamSet an exception handler on the read stream.- Specified by:
exceptionHandlerin interfaceReadStream<AmqpMessage>- Specified by:
exceptionHandlerin interfaceStreamBase- Parameters:
handler- the exception handler. Can benull.- Returns:
- a reference to this, so the API can be used fluently
-
handler
Description copied from interface:ReadStreamSet a data handler. As data is read, the handler will be called with the data.- Specified by:
handlerin interfaceReadStream<AmqpMessage>- Returns:
- a reference to this, so the API can be used fluently
-
pause
Description copied from interface:ReadStreamPause theReadStream, it sets the buffer infetchmode and clears the actual demand.While it's paused, no data will be sent to the data
handler.- Specified by:
pausein interfaceReadStream<AmqpMessage>- Returns:
- a reference to this, so the API can be used fluently
-
resume
Description copied from interface:ReadStreamResume reading, and sets the buffer inflowingmode. If theReadStreamhas been paused, reading will recommence on it.- Specified by:
resumein interfaceReadStream<AmqpMessage>- Returns:
- a reference to this, so the API can be used fluently
-
fetch
Description copied from interface:ReadStreamFetch the specifiedamountof elements. If theReadStreamhas been paused, reading will recommence with the specifiedamountof items, otherwise the specifiedamountwill be added to the current stream demand.- Specified by:
fetchin interfaceReadStream<AmqpMessage>- Returns:
- a reference to this, so the API can be used fluently
-
endHandler
Description copied from interface:ReadStreamSet an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called.- Specified by:
endHandlerin interfaceReadStream<AmqpMessage>- Returns:
- a reference to this, so the API can be used fluently
-
address
The listened address.- Returns:
- the address, not
null
-
connection
Gets the connection having created the receiver. Cannot benull- Returns:
- the connection having created the receiver.
-
unwrap
public io.vertx.proton.ProtonReceiver unwrap()- Returns:
- the underlying ProtonReceiver.
-
pipe
Pause this stream and return aPipeto transfer the elements of this stream to a destinationWriteStream. The stream will be resumed when the pipe will be wired to aWriteStream.- Specified by:
pipein interfaceReadStream<AmqpMessage>- Returns:
- a pipe
-
newInstance
Creates a new instance of theAmqpReceiver. -
hashCode
public int hashCode() -
equals
-
toString
-
toMulti
-
toBlockingIterable
-
toBlockingStream
-