public class MarshallableEntryImpl<K,V> extends Object implements MarshallableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
long |
created() |
boolean |
equals(Object o) |
long |
expiryTime() |
static long |
expiryTime(Metadata metadata,
long created,
long lastUsed) |
PrivateMetadata |
getInternalMetadata() |
ByteBuffer |
getInternalMetadataBytes() |
K |
getKey()
Returns the same key as
MarshallableEntry.getKeyBytes() , but unmarshalled. |
ByteBuffer |
getKeyBytes()
Returns the key in serialized format.
|
MarshalledValue |
getMarshalledValue() |
Metadata |
getMetadata() |
ByteBuffer |
getMetadataBytes() |
V |
getValue()
Returns the same value as
MarshallableEntry.getKeyBytes() , but unmarshalled. |
ByteBuffer |
getValueBytes()
Returns the value in serialize format.
|
int |
hashCode() |
boolean |
isExpired(long now) |
static boolean |
isExpired(Metadata metadata,
long now,
long created,
long lastUsed) |
long |
lastUsed() |
String |
toString() |
public K getKey()
MarshallableEntry
MarshallableEntry.getKeyBytes()
, but unmarshalled.getKey
in interface MarshallableEntry<K,V>
public V getValue()
MarshallableEntry
MarshallableEntry.getKeyBytes()
, but unmarshalled.getValue
in interface MarshallableEntry<K,V>
public Metadata getMetadata()
getMetadata
in interface MarshallableEntry<K,V>
public PrivateMetadata getInternalMetadata()
getInternalMetadata
in interface MarshallableEntry<K,V>
null
if there is no internal metadata associated with the object.public ByteBuffer getKeyBytes()
MarshallableEntry
getKeyBytes
in interface MarshallableEntry<K,V>
public ByteBuffer getValueBytes()
MarshallableEntry
getValueBytes
in interface MarshallableEntry<K,V>
public ByteBuffer getMetadataBytes()
getMetadataBytes
in interface MarshallableEntry<K,V>
public ByteBuffer getInternalMetadataBytes()
getInternalMetadataBytes
in interface MarshallableEntry<K,V>
null
if there is no internal metadata associated with the object.public long created()
created
in interface MarshallableEntry<K,V>
public long lastUsed()
lastUsed
in interface MarshallableEntry<K,V>
public boolean isExpired(long now)
isExpired
in interface MarshallableEntry<K,V>
public static boolean isExpired(Metadata metadata, long now, long created, long lastUsed)
public long expiryTime()
expiryTime
in interface MarshallableEntry<K,V>
public static long expiryTime(Metadata metadata, long created, long lastUsed)
public MarshalledValue getMarshalledValue()
getMarshalledValue
in interface MarshallableEntry<K,V>
Copyright © 2021 JBoss by Red Hat. All rights reserved.