Class AmqpMessage<T>
java.lang.Object
io.smallrye.reactive.messaging.amqp.AmqpMessage<T>
- All Implemented Interfaces:
ContextAwareMessage<T>
,MetadataInjectableMessage<T>
,org.eclipse.microprofile.reactive.messaging.Message<T>
- Direct Known Subclasses:
OutgoingAmqpMessage
public class AmqpMessage<T>
extends Object
implements ContextAwareMessage<T>, MetadataInjectableMessage<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IncomingAmqpMetadata
protected static final String
protected final io.vertx.amqp.AmqpMessage
protected org.eclipse.microprofile.reactive.messaging.Metadata
protected final AmqpFailureHandler
Fields inherited from interface org.eclipse.microprofile.reactive.messaging.Message
LOGGER
-
Constructor Summary
ConstructorsConstructorDescriptionAmqpMessage
(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) AmqpMessage
(io.vertx.mutiny.amqp.AmqpMessage delegate, io.vertx.mutiny.core.Context context, OutgoingAmqpMetadata amqpMetadata) -
Method Summary
Modifier and TypeMethodDescriptionack()
static <T> AmqpMessageBuilder<T>
builder()
Deprecated.getAck()
io.vertx.mutiny.amqp.AmqpMessage
io.vertx.core.json.JsonObject
org.apache.qpid.proton.amqp.messaging.Section
getBody()
long
long
org.apache.qpid.proton.message.MessageError
getError()
long
long
org.eclipse.microprofile.reactive.messaging.Metadata
getNack()
int
long
getTtl()
void
injectMetadata
(Object metadataObject) boolean
org.apache.qpid.proton.message.Message
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
addMetadata, getMetadata, nack, unwrap, withAck, withMetadata, withMetadata, withNack, withPayload
-
Field Details
-
APPLICATION_JSON
- See Also:
-
message
protected final io.vertx.amqp.AmqpMessage message -
metadata
protected org.eclipse.microprofile.reactive.messaging.Metadata metadata -
amqpMetadata
-
onNack
-
-
Constructor Details
-
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.mutiny.amqp.AmqpMessage delegate, io.vertx.mutiny.core.Context context, OutgoingAmqpMetadata amqpMetadata) -
AmqpMessage
public AmqpMessage(io.vertx.amqp.AmqpMessage msg, io.vertx.mutiny.core.Context context, AmqpFailureHandler onNack, boolean cloudEventEnabled, Boolean tracingEnabled)
-
-
Method Details
-
builder
Deprecated. -
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
- 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
-
getGroupSequence
public long getGroupSequence() -
getCreationTime
public long getCreationTime() -
getAddress
-
getGroupId
-
getContentType
-
getExpiryTime
public long getExpiryTime() -
getCorrelationId
-
getContentEncoding
-
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
- Specified by:
getAck
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
getNack
- Specified by:
getNack
in interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
injectMetadata
- Specified by:
injectMetadata
in interfaceMetadataInjectableMessage<T>
-