public class StreamMessage<K,V> extends Object
| Constructor and Description |
|---|
StreamMessage(K stream,
String id,
Map<K,V> body)
Create a new
StreamMessage. |
StreamMessage(K stream,
String id,
Map<K,V> body,
long millisElapsedFromDelivery,
long deliveredCount)
Create a new
StreamMessage. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Map<K,V> |
getBody() |
Long |
getDeliveredCount() |
String |
getId() |
Long |
getMillisElapsedFromDelivery() |
K |
getStream() |
int |
hashCode() |
boolean |
isClaimed() |
String |
toString() |
public StreamMessage(K stream, String id, Map<K,V> body)
StreamMessage.stream - the stream.id - the message id.body - map containing the message body.public StreamMessage(K stream, String id, Map<K,V> body, long millisElapsedFromDelivery, long deliveredCount)
StreamMessage.stream - the stream.id - the message id.millisElapsedFromDelivery - the milliseconds since last delivery when CLAIM was used.deliveredCount - the number of prior deliveries when CLAIM was used.body - map containing the message body.public K getStream()
public String getId()
public Map<K,V> getBody()
null for commands that do not return the message body.public Long getMillisElapsedFromDelivery()
null when not applicable0 means not claimed from the pending entries list (PEL)> 0 means claimed from the PELpublic Long getDeliveredCount()
null when not applicable0 means not claimed from the pending entries list (PEL)> 0 means claimed from the PELpublic boolean isClaimed()
Copyright © 2025 lettuce.io. All rights reserved.