java.lang.Object
io.vertx.mutiny.amqp.AmqpReceiver
- All Implemented Interfaces:
io.vertx.mutiny.core.streams.ReadStream<AmqpMessage>,io.vertx.mutiny.core.streams.StreamBase
public class AmqpReceiver
extends Object
implements io.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
Interface used to consume AMQP message as a stream of message.
Back pressure is implemented using AMQP credits.
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAmqpReceiver(io.vertx.amqp.AmqpReceiver delegate) AmqpReceiver(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionaddress()io.smallrye.mutiny.Uni<Void> close()Closes the receiver.Blocking variant ofclose().voidVariant ofclose()that ignores the result of the operation.endHandler(Runnable endHandler) booleanexceptionHandler(Consumer<Throwable> handler) fetch(long amount) io.vertx.amqp.AmqpReceiverhandler(Consumer<AmqpMessage> handler) inthashCode()static AmqpReceivernewInstance(io.vertx.amqp.AmqpReceiver arg) pause()io.vertx.mutiny.core.streams.Pipe<AmqpMessage> pipe()io.smallrye.mutiny.Uni<Void> pipeTo(io.vertx.mutiny.core.streams.WriteStream<AmqpMessage> dst) pipeToAndAwait(io.vertx.mutiny.core.streams.WriteStream<AmqpMessage> dst) voidpipeToAndForget(io.vertx.mutiny.core.streams.WriteStream<AmqpMessage> dst) resume()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) -
AmqpReceiver
-
-
Method Details
-
getDelegate
public io.vertx.amqp.AmqpReceiver getDelegate()- Specified by:
getDelegatein interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>- Specified by:
getDelegatein interfaceio.vertx.mutiny.core.streams.StreamBase
-
toString
-
equals
-
hashCode
public int hashCode() -
pipe
- Specified by:
pipein interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
pipeTo
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> pipeTo(io.vertx.mutiny.core.streams.WriteStream<AmqpMessage> dst) - Specified by:
pipeToin interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
pipeToAndAwait
- Specified by:
pipeToAndAwaitin interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
pipeToAndForget
- Specified by:
pipeToAndForgetin interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
exceptionHandler
- Specified by:
exceptionHandlerin interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>- Specified by:
exceptionHandlerin interfaceio.vertx.mutiny.core.streams.StreamBase
-
handler
- Specified by:
handlerin interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
pause
- Specified by:
pausein interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
resume
- Specified by:
resumein interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
fetch
- Specified by:
fetchin interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
endHandler
- Specified by:
endHandlerin interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
address
- Returns:
- the address, not
null
-
close
Closes the receiver.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
closeAndAwait
Blocking variant ofclose().This method waits 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 a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
closeAndForget
public void closeAndForget() -
connection
- Returns:
- the connection having created the receiver.
-
unwrap
public io.vertx.proton.ProtonReceiver unwrap()- Returns:
- the underlying ProtonReceiver.
-
toMulti
- Specified by:
toMultiin interfaceio.vertx.mutiny.core.streams.ReadStream<AmqpMessage>
-
toBlockingIterable
-
toBlockingStream
-
newInstance
-