Class PendingMessage
java.lang.Object
io.quarkus.redis.datasource.stream.PendingMessage
Represents the result of an expended xpending command.
In the extended form we no longer see the summary information, instead there is detailed information for each message
in the pending entries list. For each message four attributes are returned:
- The ID of the message.
- The name of the consumer that fetched the message and has still to acknowledge it. We call it the current owner of the message.
- The number of milliseconds that elapsed since the last time this message was delivered to this consumer.
- The number of times this message was delivered.
While this structure is mutable, it is highly recommended to use it as a read-only structure.
-
Constructor Summary
ConstructorDescriptionPendingMessage
(String messageId, String consumer, Duration durationSinceLastDelivery, int deliveryCount) -
Method Summary
Modifier and TypeMethodDescriptionGets the consumer name.int
Gets the number of delivery attempts.Gets the duration since the last delivery attempt.Gets the message id.
-
Constructor Details
-
PendingMessage
-
-
Method Details
-
getMessageId
Gets the message id.- Returns:
- the message id;
-
getConsumer
Gets the consumer name.- Returns:
- the consumer name
-
getDurationSinceLastDelivery
Gets the duration since the last delivery attempt.- Returns:
- the duration
-
getDeliveryCount
public int getDeliveryCount()Gets the number of delivery attempts.- Returns:
- the number of attempts
-