Class OutgoingAmqpMessage<T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.amqp.AmqpMessage<T>
-
- io.smallrye.reactive.messaging.amqp.OutgoingAmqpMessage<T>
-
- All Implemented Interfaces:
Message<T>
public class OutgoingAmqpMessage<T> extends AmqpMessage<T> implements Message<T>
-
-
Field Summary
-
Fields inherited from class io.smallrye.reactive.messaging.amqp.AmqpMessage
APPLICATION_JSON, message, onNack
-
-
Constructor Summary
Constructors Constructor Description OutgoingAmqpMessage(io.vertx.mutiny.amqp.AmqpMessage message, OutgoingAmqpMetadata amqpMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>
ack()
Acknowledge this message.String
getAddress()
io.vertx.core.json.JsonObject
getApplicationProperties()
String
getContentEncoding()
String
getContentType()
Object
getCorrelationId()
String
getGroupId()
Object
getMessageId()
Metadata
getMetadata()
int
getPriority()
String
getSubject()
long
getTtl()
boolean
isDurable()
CompletionStage<Void>
nack(Throwable reason)
Acknowledge negatively this message.-
Methods inherited from class io.smallrye.reactive.messaging.amqp.AmqpMessage
builder, getAmqpMessage, getBody, getCreationTime, getDeliveryCount, getError, getExpiryTime, getGroupSequence, getPayload, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.microprofile.reactive.messaging.Message
addMetadata, getAck, getMetadata, getNack, getPayload, unwrap, withAck, withMetadata, withMetadata, withNack, withPayload
-
-
-
-
Constructor Detail
-
OutgoingAmqpMessage
public OutgoingAmqpMessage(io.vertx.mutiny.amqp.AmqpMessage message, OutgoingAmqpMetadata amqpMetadata)
-
-
Method Detail
-
getMetadata
public Metadata getMetadata()
- Specified by:
getMetadata
in interfaceMessage<T>
- Overrides:
getMetadata
in classAmqpMessage<T>
- Returns:
- The set of metadata attached to this message, potentially empty.
-
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
public Object getMessageId()
- Overrides:
getMessageId
in classAmqpMessage<T>
-
getAddress
public String getAddress()
- Overrides:
getAddress
in classAmqpMessage<T>
-
getGroupId
public String getGroupId()
- Overrides:
getGroupId
in classAmqpMessage<T>
-
getContentType
public String getContentType()
- Overrides:
getContentType
in classAmqpMessage<T>
-
getCorrelationId
public Object getCorrelationId()
- Overrides:
getCorrelationId
in classAmqpMessage<T>
-
getContentEncoding
public String getContentEncoding()
- Overrides:
getContentEncoding
in classAmqpMessage<T>
-
getSubject
public String getSubject()
- Overrides:
getSubject
in classAmqpMessage<T>
-
ack
public CompletionStage<Void> ack()
Description copied from interface:Message
Acknowledge this message.
-
nack
public CompletionStage<Void> nack(Throwable reason)
Description copied from interface:Message
Acknowledge negatively this message.nack
is used to indicate that the processing of a message failed. The reason is passed as parameter.- Specified by:
nack
in interfaceMessage<T>
- Overrides:
nack
in classAmqpMessage<T>
- Parameters:
reason
- the reason of the nack, must not benull
- Returns:
- a completion stage completed when the message is negative-acknowledgement has completed. If the negative acknowledgement fails, the completion stage propagates the failure.
-
getApplicationProperties
public io.vertx.core.json.JsonObject getApplicationProperties()
- Overrides:
getApplicationProperties
in classAmqpMessage<T>
-
-