Package | Description |
---|---|
io.smallrye.reactive.messaging.amqp | |
io.smallrye.reactive.messaging.camel | |
io.smallrye.reactive.messaging.jms | |
io.smallrye.reactive.messaging.kafka | |
io.smallrye.reactive.messaging.kafka.fault | |
io.smallrye.reactive.messaging.mqtt | |
org.eclipse.microprofile.reactive.messaging |
IMPORTANT
This package is a copy from the original package from the specification.
|
Modifier and Type | Field and Description |
---|---|
protected Metadata |
AmqpMessage.metadata |
Modifier and Type | Method and Description |
---|---|
Metadata |
AmqpMessage.getMetadata() |
Metadata |
OutgoingAmqpMessage.getMetadata() |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
AmqpMessage.nack(Throwable reason,
Metadata metadata) |
CompletionStage<Void> |
OutgoingAmqpMessage.nack(Throwable reason,
Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
Metadata |
CamelMessage.getMetadata() |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
CamelMessage.nack(Throwable reason,
Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
Metadata |
IncomingJmsMessage.getMetadata() |
Modifier and Type | Method and Description |
---|---|
Metadata |
OutgoingKafkaRecord.getMetadata() |
Metadata |
IncomingKafkaRecord.getMetadata() |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
IncomingKafkaRecord.nack(Throwable reason,
Metadata metadata) |
OutgoingKafkaRecord<K,T> |
OutgoingKafkaRecord.withMetadata(Metadata metadata) |
Constructor and Description |
---|
OutgoingKafkaRecord(String topic,
K key,
T value,
Instant timestamp,
int partition,
org.apache.kafka.common.header.Headers headers,
Supplier<CompletionStage<Void>> ack,
Function<Throwable,CompletionStage<Void>> nack,
Metadata existingMetadata) |
Modifier and Type | Method and Description |
---|---|
<K,V> CompletionStage<Void> |
KafkaFailureHandler.handle(IncomingKafkaRecord<K,V> record,
Throwable reason,
Metadata metadata) |
<K,V> CompletionStage<Void> |
KafkaIgnoreFailure.handle(IncomingKafkaRecord<K,V> record,
Throwable reason,
Metadata metadata) |
<K,V> CompletionStage<Void> |
KafkaFailStop.handle(IncomingKafkaRecord<K,V> record,
Throwable reason,
Metadata metadata) |
<K,V> CompletionStage<Void> |
KafkaDeadLetterQueue.handle(IncomingKafkaRecord<K,V> record,
Throwable reason,
Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
ReceivingMqttMessage.nack(Throwable reason,
Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
Metadata |
Metadata.copy()
Copies the current
Metadata instance. |
static Metadata |
Metadata.empty()
Returns an empty set of metadata.
|
static Metadata |
Metadata.from(Iterable<Object> metadata)
Returns an instance of
Metadata containing multiple values. |
default Metadata |
Message.getMetadata() |
static Metadata |
Metadata.of(Object... metadata)
Returns an instance of
Metadata containing multiple values. |
Metadata |
Metadata.with(Object item)
Creates a new instance of
Metadata with the current entries, plus item . |
Metadata |
Metadata.without(Class<?> clazz)
Creates a new instance of
Metadata with the current entries, minus the entry associated with the given class. |
Modifier and Type | Method and Description |
---|---|
default CompletionStage<Void> |
Message.nack(Throwable reason,
Metadata metadata)
Acknowledge negatively this message.
|
static <T> Message<T> |
Message.of(T payload,
Metadata metadata)
Create a message with the given payload and metadata.
|
static <T> Message<T> |
Message.of(T payload,
Metadata metadata,
Supplier<CompletionStage<Void>> ack)
Create a message with the given payload, metadata and ack function.
|
static <T> Message<T> |
Message.of(T payload,
Metadata metadata,
Supplier<CompletionStage<Void>> ack,
Function<Throwable,CompletionStage<Void>> nack)
Create a message with the given payload, metadata and ack and nack functions.
|
default Message<T> |
Message.withMetadata(Metadata metadata)
Creates a new instance of
Message with the specified metadata. |
Copyright © 2018–2021 SmallRye. All rights reserved.