Class OutgoingAmqpMessage<T>
java.lang.Object
io.smallrye.reactive.messaging.amqp.AmqpMessage<T>
io.smallrye.reactive.messaging.amqp.OutgoingAmqpMessage<T>
- All Implemented Interfaces:
ContextAwareMessage<T>
,MetadataInjectableMessage<T>
,org.eclipse.microprofile.reactive.messaging.Message<T>
public class OutgoingAmqpMessage<T>
extends AmqpMessage<T>
implements org.eclipse.microprofile.reactive.messaging.Message<T>
-
Field Summary
Fields inherited from class io.smallrye.reactive.messaging.amqp.AmqpMessage
amqpMetadata, APPLICATION_JSON, message, metadata, onNack
Fields inherited from interface org.eclipse.microprofile.reactive.messaging.Message
EMPTY_ACK, EMPTY_NACK, LOGGER
-
Constructor Summary
ConstructorDescriptionOutgoingAmqpMessage
(io.vertx.mutiny.amqp.AmqpMessage message, OutgoingAmqpMetadata amqpMetadata) -
Method Summary
Modifier and TypeMethodDescriptionack
(org.eclipse.microprofile.reactive.messaging.Metadata metadata) Function<org.eclipse.microprofile.reactive.messaging.Metadata,
CompletionStage<Void>> io.vertx.core.json.JsonObject
long
long
long
long
org.eclipse.microprofile.reactive.messaging.Metadata
BiFunction<Throwable,
org.eclipse.microprofile.reactive.messaging.Metadata, CompletionStage<Void>> int
long
getTtl()
boolean
Methods inherited from class io.smallrye.reactive.messaging.amqp.AmqpMessage
builder, getAmqpMessage, getBody, getError, getPayload, injectMetadata, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.smallrye.reactive.messaging.providers.locals.ContextAwareMessage
getContextMetadata, runOnMessageContext
Methods inherited from interface org.eclipse.microprofile.reactive.messaging.Message
ack, addMetadata, getAck, getMetadata, getNack, getPayload, nack, thenApply, unwrap, withAck, withAckWithMetadata, withMetadata, withMetadata, withNack, withNackWithMetadata, withPayload
-
Constructor Details
-
OutgoingAmqpMessage
public OutgoingAmqpMessage(io.vertx.mutiny.amqp.AmqpMessage message, OutgoingAmqpMetadata amqpMetadata)
-
-
Method Details
-
getMetadata
public org.eclipse.microprofile.reactive.messaging.Metadata getMetadata()- Specified by:
getMetadata
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
- Overrides:
getMetadata
in classAmqpMessage<T>
-
isDurable
public boolean isDurable()- Overrides:
isDurable
in classAmqpMessage<T>
-
getPriority
public int getPriority()- Overrides:
getPriority
in classAmqpMessage<T>
-
getTtl
public long getTtl()- Overrides:
getTtl
in classAmqpMessage<T>
-
getMessageId
- Overrides:
getMessageId
in classAmqpMessage<T>
-
getAddress
- Overrides:
getAddress
in classAmqpMessage<T>
-
getGroupId
- Overrides:
getGroupId
in classAmqpMessage<T>
-
getContentType
- Overrides:
getContentType
in classAmqpMessage<T>
-
getCorrelationId
- Overrides:
getCorrelationId
in classAmqpMessage<T>
-
getContentEncoding
- Overrides:
getContentEncoding
in classAmqpMessage<T>
-
getExpiryTime
public long getExpiryTime()- Overrides:
getExpiryTime
in classAmqpMessage<T>
-
getCreationTime
public long getCreationTime()- Overrides:
getCreationTime
in classAmqpMessage<T>
-
getDeliveryCount
public long getDeliveryCount()- Overrides:
getDeliveryCount
in classAmqpMessage<T>
-
getGroupSequence
public long getGroupSequence()- Overrides:
getGroupSequence
in classAmqpMessage<T>
-
getSubject
- Overrides:
getSubject
in classAmqpMessage<T>
-
ack
- Specified by:
ack
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
- Overrides:
ack
in classAmqpMessage<T>
-
nack
public CompletionStage<Void> nack(Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata) - Specified by:
nack
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
- Overrides:
nack
in classAmqpMessage<T>
-
getAckWithMetadata
public Function<org.eclipse.microprofile.reactive.messaging.Metadata,CompletionStage<Void>> getAckWithMetadata()- Specified by:
getAckWithMetadata
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
- Overrides:
getAckWithMetadata
in classAmqpMessage<T>
-
getNackWithMetadata
public BiFunction<Throwable,org.eclipse.microprofile.reactive.messaging.Metadata, getNackWithMetadata()CompletionStage<Void>> - Specified by:
getNackWithMetadata
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
- Overrides:
getNackWithMetadata
in classAmqpMessage<T>
-
getApplicationProperties
public io.vertx.core.json.JsonObject getApplicationProperties()- Overrides:
getApplicationProperties
in classAmqpMessage<T>
-