Class AmqpMessage<T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.amqp.AmqpMessage<T>
-
- All Implemented Interfaces:
org.eclipse.microprofile.reactive.messaging.Message<T>
- Direct Known Subclasses:
OutgoingAmqpMessage
public class AmqpMessage<T> extends Object implements org.eclipse.microprofile.reactive.messaging.Message<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected IncomingAmqpMetadata
amqpMetadata
protected static String
APPLICATION_JSON
protected io.vertx.amqp.AmqpMessage
message
protected org.eclipse.microprofile.reactive.messaging.Metadata
metadata
protected AmqpFailureHandler
onNack
-
Constructor Summary
Constructors Constructor Description AmqpMessage(io.vertx.amqp.AmqpMessage msg, io.vertx.mutiny.core.Context context, AmqpFailureHandler onNack, boolean cloudEventEnabled, Boolean tracingEnabled)
AmqpMessage(io.vertx.mutiny.amqp.AmqpMessage delegate, io.vertx.mutiny.core.Context context, AmqpFailureHandler onNack, boolean cloudEventEnabled, Boolean tracingEnabled)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CompletionStage<Void>
ack()
static <T> AmqpMessageBuilder<T>
builder()
Deprecated.Supplier<CompletionStage<Void>>
getAck()
String
getAddress()
io.vertx.mutiny.amqp.AmqpMessage
getAmqpMessage()
io.vertx.core.json.JsonObject
getApplicationProperties()
org.apache.qpid.proton.amqp.messaging.Section
getBody()
String
getContentEncoding()
String
getContentType()
Object
getCorrelationId()
long
getCreationTime()
long
getDeliveryCount()
org.apache.qpid.proton.message.MessageError
getError()
long
getExpiryTime()
String
getGroupId()
long
getGroupSequence()
Object
getMessageId()
org.eclipse.microprofile.reactive.messaging.Metadata
getMetadata()
Function<Throwable,CompletionStage<Void>>
getNack()
T
getPayload()
int
getPriority()
String
getSubject()
long
getTtl()
void
injectTracingMetadata(io.smallrye.reactive.messaging.TracingMetadata tracingMetadata)
boolean
isDurable()
CompletionStage<Void>
nack(Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata)
org.apache.qpid.proton.message.Message
unwrap()
-
-
-
Field Detail
-
APPLICATION_JSON
protected static final String APPLICATION_JSON
- See Also:
- Constant Field Values
-
message
protected final io.vertx.amqp.AmqpMessage message
-
metadata
protected org.eclipse.microprofile.reactive.messaging.Metadata metadata
-
amqpMetadata
protected final IncomingAmqpMetadata amqpMetadata
-
onNack
protected final AmqpFailureHandler onNack
-
-
Constructor Detail
-
AmqpMessage
public AmqpMessage(io.vertx.mutiny.amqp.AmqpMessage delegate, io.vertx.mutiny.core.Context context, AmqpFailureHandler onNack, boolean cloudEventEnabled, Boolean tracingEnabled)
-
AmqpMessage
public AmqpMessage(io.vertx.amqp.AmqpMessage msg, io.vertx.mutiny.core.Context context, AmqpFailureHandler onNack, boolean cloudEventEnabled, Boolean tracingEnabled)
-
-
Method Detail
-
builder
@Deprecated public static <T> AmqpMessageBuilder<T> builder()
Deprecated.
-
ack
public CompletionStage<Void> ack()
- Specified by:
ack
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<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>
-
getPayload
public T getPayload()
- Specified by:
getPayload
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
getMetadata
public org.eclipse.microprofile.reactive.messaging.Metadata getMetadata()
- Specified by:
getMetadata
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
unwrap
public org.apache.qpid.proton.message.Message unwrap()
-
isDurable
public boolean isDurable()
-
getDeliveryCount
public long getDeliveryCount()
-
getPriority
public int getPriority()
-
getTtl
public long getTtl()
-
getMessageId
public Object getMessageId()
-
getGroupSequence
public long getGroupSequence()
-
getCreationTime
public long getCreationTime()
-
getAddress
public String getAddress()
-
getGroupId
public String getGroupId()
-
getContentType
public String getContentType()
-
getExpiryTime
public long getExpiryTime()
-
getCorrelationId
public Object getCorrelationId()
-
getContentEncoding
public String getContentEncoding()
-
getSubject
public String getSubject()
-
getApplicationProperties
public io.vertx.core.json.JsonObject getApplicationProperties()
-
getBody
public org.apache.qpid.proton.amqp.messaging.Section getBody()
-
getError
public org.apache.qpid.proton.message.MessageError getError()
-
getAmqpMessage
public io.vertx.mutiny.amqp.AmqpMessage getAmqpMessage()
-
getAck
public Supplier<CompletionStage<Void>> getAck()
- Specified by:
getAck
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
getNack
public Function<Throwable,CompletionStage<Void>> getNack()
- Specified by:
getNack
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
injectTracingMetadata
public void injectTracingMetadata(io.smallrye.reactive.messaging.TracingMetadata tracingMetadata)
-
-