public class ClaimedMessages<K,V> extends Object
XAUTOCLAIM.| Constructor and Description |
|---|
ClaimedMessages(String id,
List<StreamMessage<K,V>> messages)
Create a new
ClaimedMessages. |
ClaimedMessages(String id,
List<StreamMessage<K,V>> messages,
List<String> deletedIds)
Create a new
ClaimedMessages with deleted entry IDs. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getDeletedIds()
Returns the IDs of pending entries that were removed from the PEL because they no longer exist in the stream.
|
String |
getId() |
List<StreamMessage<K,V>> |
getMessages() |
public ClaimedMessages(String id, List<StreamMessage<K,V>> messages)
ClaimedMessages.id - the stream ID to use as the cursor for the next XAUTOCLAIM call.messages - the claimed messages.public ClaimedMessages(String id, List<StreamMessage<K,V>> messages, List<String> deletedIds)
ClaimedMessages with deleted entry IDs.id - the stream ID to use as the cursor for the next XAUTOCLAIM call.messages - the claimed messages.deletedIds - the IDs the server removed from the PEL, or null for an empty list.public String getId()
public List<StreamMessage<K,V>> getMessages()
public List<String> getDeletedIds()
XAUTOCLAIM returns these IDs in a third reply element since Redis 7.0. Returns an empty list when the server responds with only two elements (Redis before 7.0).
null.Copyright © 2026 lettuce.io. All rights reserved.