public class KeyValueEntry
extends java.lang.Object
| Constructor and Description |
|---|
KeyValueEntry(Message m)
Construct KeyValueEntry from a message
|
KeyValueEntry(MessageInfo mi)
Construct KeyValueEntry from message info
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
@NonNull java.lang.String |
getBucket()
Get the key value bucket this key in.
|
@NonNull java.time.ZonedDateTime |
getCreated()
Get the creation time of the current version of the key
|
long |
getDataLen()
Get the number of bytes in the data.
|
long |
getDelta()
Internal reference to pending message from the entry request
|
@NonNull java.lang.String |
getKey()
Get the key
|
@NonNull KeyValueOperation |
getOperation()
The KeyValueOperation of this entry
|
long |
getRevision()
Get the revision number of the string.
|
byte[] |
getValue()
Get the value.
|
@Nullable java.lang.Long |
getValueAsLong()
Get the value as a long
|
@Nullable java.lang.String |
getValueAsString()
Get the value as a string using UTF-8 encoding
|
int |
hashCode() |
java.lang.String |
toString() |
public KeyValueEntry(MessageInfo mi)
mi - the message infopublic KeyValueEntry(Message m)
m - the messagepublic @NonNull java.lang.String getBucket()
public @NonNull java.lang.String getKey()
public byte[] getValue()
public @Nullable java.lang.String getValueAsString()
public @Nullable java.lang.Long getValueAsLong()
java.lang.NumberFormatException - if the string does not contain a parsable long.public long getDataLen()
public @NonNull java.time.ZonedDateTime getCreated()
public long getRevision()
public long getDelta()
public @NonNull KeyValueOperation getOperation()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object