K
- the key typeV
- the value typepublic abstract class ClientCacheEntry<K,V>
extends java.lang.Object
ClientCacheEntry
is an element in a ClientCache
.Modifier and Type | Field and Description |
---|---|
protected K |
_key
The key.
|
protected LockToken |
_lockToken
The lock token.
|
protected int |
_serializedValueSize
The serialized size (in bytes).
|
protected long |
_timestamp
the timewhen this entry was created.
|
protected V |
_value
The value.
|
protected VersionToken |
_versionToken
The version token.
|
Constructor and Description |
---|
ClientCacheEntry()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Retrieve the entries key.
|
LockToken |
getLockToken()
Retrieve the version token.
|
long |
getTimestamp()
Retrieve the timestamp of this entry.
|
V |
getValue()
Retrieve the entries value.
|
VersionToken |
getVersionToken()
Retrieve the lock token
|
int |
size()
Retrieve the size of the object (in bytes).
|
protected K _key
protected V _value
protected int _serializedValueSize
protected VersionToken _versionToken
protected LockToken _lockToken
protected long _timestamp
public V getValue()
public K getKey()
public int size()
public LockToken getLockToken()
public VersionToken getVersionToken()
public long getTimestamp()