Class StreamMessage<K,F,V>
java.lang.Object
io.quarkus.redis.datasource.stream.StreamMessage<K,F,V>
- Type Parameters:
K- the type of the keyF- the field type for the payloadV- the value type for the payload
Represents a message received from a stream
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StreamMessage
-
StreamMessage
-
-
Method Details
-
key
- Returns:
- the key of the stream from which the message has been received.
-
id
- Returns:
- the stream id, i.e. the id of the message in the stream.
-
payload
- Returns:
- the payload of the message
-
durationSinceLastDelivery
- Returns:
- the duration since this message was last delivered to a consumer,
or
nullif this message was not reclaimed via the CLAIM option. Only present when the XREADGROUP CLAIM option is used and this message was a pending entry.
-
deliveryCount
public int deliveryCount()- Returns:
- the number of times this message has been delivered, or
0if this message was not reclaimed via the CLAIM option. Only present when the XREADGROUP CLAIM option is used and this message was a pending entry.
-