Class OrderedIncomingKafkaRecord<K,T>
java.lang.Object
io.smallrye.reactive.messaging.kafka.IncomingKafkaRecord<K,T>
io.smallrye.reactive.messaging.kafka.impl.OrderedIncomingKafkaRecord<K,T>
- All Implemented Interfaces:
KafkaRecord<K,,T> io.smallrye.reactive.messaging.providers.locals.ContextAwareMessage<T>,io.smallrye.reactive.messaging.providers.MetadataInjectableMessage<T>,org.eclipse.microprofile.reactive.messaging.Message<T>
A wrapper around IncomingKafkaRecord that executes a completion handler after ack/nack.
Used for ordered processing to signal when a record has been fully processed.
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.reactive.messaging.Message
EMPTY_ACK, EMPTY_NACK, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionOrderedIncomingKafkaRecord(IncomingKafkaRecord<K, T> delegate, Runnable postProcessing) -
Method Summary
Modifier and TypeMethodDescriptionack(org.eclipse.microprofile.reactive.messaging.Metadata metadata) Methods inherited from class io.smallrye.reactive.messaging.kafka.IncomingKafkaRecord
getAckWithMetadata, getConsumerGroupGenerationId, getHeaders, getKey, getMetadata, getNackWithMetadata, getOffset, getPartition, getPayload, getTimestamp, getTopic, injectMetadataMethods 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
-
Constructor Details
-
OrderedIncomingKafkaRecord
-
-
Method Details
-
ack
- Specified by:
ackin interfaceorg.eclipse.microprofile.reactive.messaging.Message<K>- Overrides:
ackin classIncomingKafkaRecord<K,T>
-
nack
public CompletionStage<Void> nack(Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata) - Specified by:
nackin interfaceorg.eclipse.microprofile.reactive.messaging.Message<K>- Overrides:
nackin classIncomingKafkaRecord<K,T>
-