- All Superinterfaces:
Message
public interface KafkaMessage
extends Message
-
Method Summary
default void
int
Get the Kafka record indexPartition type value associated to the message.
Get the Kafka record key associated to the message.
Set the Kafka record key associated with the message.
Overloaded setter for the Kafka key accepting a String.
long
Get the Kafka record offset value associated to the message.
FIXME: Refactor/remove this method when
Message.headers() are http agnostic
Get the Kafka record headers associated to the message.
int
Get the Kafka record partition value associated to the message.
int
Get the size in bytes of that message.
Get the Kafka record topic value associated to the message.
Methods inherited from interface io.gravitee.gateway.reactive.api.message.Message
attribute, attribute, attributeAsList, attributeNames, attributes, content, content, content, correlationId, error, error, id, internalAttribute, internalAttribute, internalAttributeNames, internalAttributes, metadata, parentCorrelationId, removeAttribute, removeInternalAttribute, timestamp
-
Method Details
-
-
-
-
key
Get the Kafka record key associated to the message.
- Returns:
- the Kafka key
-
key
Set the Kafka record key associated with the message.
Allows modification of the Kafka key.
- Parameters:
key - the buffer representing the Kafka key
- Returns:
- reference to itself for easily chain calls.
-
key
Overloaded setter for the Kafka key accepting a String.
- Parameters:
key - the string representing the Kafka key
- Returns:
- reference to itself for easily chain calls.
-
offset
long offset()
Get the Kafka record offset value associated to the message.
- Returns:
- the Kafka offset
-
sequence
int sequence()
Get the Kafka record partition value associated to the message.
- Returns:
- the Kafka partition
-
indexPartition
int indexPartition()
Get the Kafka record indexPartition type value associated to the message.
- Returns:
- the Kafka indexPartition
-
topic
Get the Kafka record topic value associated to the message.
- Returns:
- the Kafka topic
-
sizeInBytes
int sizeInBytes()
Get the size in bytes of that message.
- Returns:
- the size in bytes
-
ack
Deprecated.
Description copied from interface: Message
MUST be called to acknowledge this message when it has been well-processed.
- Specified by:
ack in interface Message
-
-