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 IncomingAmqpMetadataprotected static final Stringprotected final io.vertx.amqp.AmqpMessageprotected org.eclipse.microprofile.reactive.messaging.Metadataprotected final AmqpFailureHandlerFields inherited from interface org.eclipse.microprofile.reactive.messaging.Message
EMPTY_ACK, EMPTY_NACK, 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(org.eclipse.microprofile.reactive.messaging.Metadata metadata) static <T> AmqpMessageBuilder<T>builder()Deprecated.Function<org.eclipse.microprofile.reactive.messaging.Metadata,CompletionStage<Void>> io.vertx.mutiny.amqp.AmqpMessageio.vertx.core.json.JsonObjectorg.apache.qpid.proton.amqp.messaging.SectiongetBody()longlongorg.apache.qpid.proton.message.MessageErrorgetError()longlongorg.eclipse.microprofile.reactive.messaging.MetadataBiFunction<Throwable,org.eclipse.microprofile.reactive.messaging.Metadata, CompletionStage<Void>> intlonggetTtl()voidinjectMetadata(Object metadataObject) booleanorg.apache.qpid.proton.message.Messageunwrap()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.reactive.messaging.providers.locals.ContextAwareMessage
getContextMetadata, runOnMessageContextMethods inherited from interface org.eclipse.microprofile.reactive.messaging.Message
ack, addMetadata, getAck, getMetadata, getNack, nack, thenApply, unwrap, withAck, withAckWithMetadata, withMetadata, withMetadata, withNack, withNackWithMetadata, 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:
ackin interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
nack
public CompletionStage<Void> nack(Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata) - Specified by:
nackin interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
getPayload
- Specified by:
getPayloadin interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
getMetadata
public org.eclipse.microprofile.reactive.messaging.Metadata getMetadata()- Specified by:
getMetadatain 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() -
getAckWithMetadata
public Function<org.eclipse.microprofile.reactive.messaging.Metadata,CompletionStage<Void>> getAckWithMetadata()- Specified by:
getAckWithMetadatain interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
getNackWithMetadata
public BiFunction<Throwable,org.eclipse.microprofile.reactive.messaging.Metadata, getNackWithMetadata()CompletionStage<Void>> - Specified by:
getNackWithMetadatain interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
injectMetadata
- Specified by:
injectMetadatain interfaceMetadataInjectableMessage<T>
-