Interface KafkaMessage<K,T>
- Type Parameters:
K- the type of the keyT- the type of the value
- All Superinterfaces:
ContextAwareMessage<T>,KafkaRecord<K,,T> org.eclipse.microprofile.reactive.messaging.Message<T>
@Deprecated
public interface KafkaMessage<K,T>
extends org.eclipse.microprofile.reactive.messaging.Message<T>, KafkaRecord<K,T>
Deprecated.
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.reactive.messaging.Message
LOGGER -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,T> OutgoingKafkaRecord<K, T> Deprecated.Creates a new outgoing kafka message.static <K,T> OutgoingKafkaRecord<K, T> Deprecated.Creates a new outgoing kafka message.static <K,T> OutgoingKafkaRecord<K, T> of(K key, T value) Deprecated.Creates a new outgoing kafka message.Methods inherited from interface io.smallrye.reactive.messaging.providers.locals.ContextAwareMessage
getContextMetadata, runOnMessageContextMethods inherited from interface io.smallrye.reactive.messaging.kafka.KafkaRecord
getHeaders, getKey, getPartition, getTimestamp, getTopicMethods inherited from interface org.eclipse.microprofile.reactive.messaging.Message
ack, addMetadata, getAck, getMetadata, getMetadata, getNack, getPayload, nack, nack, unwrap, withAck, withMetadata, withMetadata, withNack, withPayload
-
Method Details
-
of
Deprecated.Creates a new outgoing kafka message.- Type Parameters:
K- the type of the keyT- the type of the value- Parameters:
key- the key, can benullvalue- the value / payload, must not benull- Returns:
- the new outgoing kafka message
-
of
Deprecated.Creates a new outgoing kafka message.- Type Parameters:
K- the type of the keyT- the type of the value- Parameters:
topic- the topic, must not benullkey- the key, can benullvalue- the value / payload, must not benull- Returns:
- the new outgoing kafka message
-
of
static <K,T> OutgoingKafkaRecord<K,T> of(String topic, K key, T value, Instant timestamp, int partition) Deprecated.Creates a new outgoing kafka message.- Type Parameters:
K- the type of the keyT- the type of the value- Parameters:
topic- the topic, must not benullkey- the key, can benullvalue- the value / payload, must not benulltimestamp- the timestamp, can be null to indicate no timestamppartition- the partition, can be-1to indicate no partition- Returns:
- the new outgoing kafka message
-
instead