Class AmqpReceiver
- All Implemented Interfaces:
MutinyDelegate
,ReadStream<AmqpMessage>
,StreamBase
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()
.void
Variant ofclose()
that ignores the result of the operation.endHandler
(Runnable endHandler) boolean
exceptionHandler
(Consumer<Throwable> handler) fetch
(long amount) io.vertx.amqp.AmqpReceiver
handler
(Consumer<AmqpMessage> handler) int
hashCode()
static AmqpReceiver
newInstance
(io.vertx.amqp.AmqpReceiver arg) pause()
pipe()
io.smallrye.mutiny.Uni<Void>
pipeTo
(WriteStream<AmqpMessage> dst) Pipe thisReadStream
to theWriteStream
.Blocking variant ofReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
.void
Variant ofReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
that ignores the result of the operation.resume()
io.smallrye.mutiny.Multi<AmqpMessage>
toMulti()
toString()
io.vertx.proton.ProtonReceiver
unwrap()
-
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:
getDelegate
in interfaceMutinyDelegate
- Specified by:
getDelegate
in interfaceReadStream<AmqpMessage>
- Specified by:
getDelegate
in interfaceStreamBase
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
pipe
- Specified by:
pipe
in interfaceReadStream<AmqpMessage>
- Returns:
- a pipe
-
pipeTo
Description copied from interface:ReadStream
Pipe thisReadStream
to theWriteStream
.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.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Specified by:
pipeTo
in interfaceReadStream<AmqpMessage>
- Parameters:
dst
- the destination write stream- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
pipeToAndAwait
Description copied from interface:ReadStream
Blocking variant ofReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
.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).
- Specified by:
pipeToAndAwait
in interfaceReadStream<AmqpMessage>
- Parameters:
dst
- the destination write stream- Returns:
- the Void instance produced by the operation.
-
pipeToAndForget
Description copied from interface:ReadStream
Variant ofReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
that ignores the result of the operation.This method subscribes on the result of
ReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromReadStream.pipeTo(io.vertx.mutiny.core.streams.WriteStream)
but you don't need to compose it with other operations.- Specified by:
pipeToAndForget
in interfaceReadStream<AmqpMessage>
- Parameters:
dst
- the destination write stream
-
exceptionHandler
- Specified by:
exceptionHandler
in interfaceReadStream<AmqpMessage>
- Specified by:
exceptionHandler
in interfaceStreamBase
- Parameters:
handler
- the exception handler- Returns:
-
handler
- Specified by:
handler
in interfaceReadStream<AmqpMessage>
- Returns:
-
pause
- Specified by:
pause
in interfaceReadStream<AmqpMessage>
- Returns:
- a reference to this, so the API can be used fluently
-
resume
- Specified by:
resume
in interfaceReadStream<AmqpMessage>
- Returns:
- a reference to this, so the API can be used fluently
-
fetch
- Specified by:
fetch
in interfaceReadStream<AmqpMessage>
- Returns:
- a reference to this, so the API can be used fluently
-
endHandler
- Specified by:
endHandler
in interfaceReadStream<AmqpMessage>
- Returns:
-
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
uni
firing 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:
toMulti
in interfaceReadStream<AmqpMessage>
-
toBlockingIterable
-
toBlockingStream
-
newInstance
-