public class GridDrRawEntry<K,V> extends Object implements GridDrEntry<K,V>, Map.Entry<K,V>, Externalizable
| Constructor and Description |
|---|
GridDrRawEntry()
{@code Externalizable) support.
|
GridDrRawEntry(K key,
byte[] keyBytes,
V val,
byte[] valBytes,
long ttl,
long expireTime,
GridCacheVersion ver)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
dataCenterId()
Gets ID of initiator data center.
|
long |
expireTime()
Gets entry's expire time.
|
K |
getKey() |
V |
getValue() |
long |
globalTime()
Gets entry's global time in initiator data center.
|
K |
key()
Gets entry's key.
|
byte[] |
keyBytes() |
void |
marshal(GridMarshaller marsh)
Perform internal marshal of this entry before it will be serialized.
|
long |
order()
Gets entry's order in initiator data center.
|
void |
readExternal(ObjectInput in) |
V |
setValue(V val) |
int |
size()
Note that this method can be called only after entry is marshalled.
|
int |
topologyVersion()
Gets entry's topology version in initiator data center.
|
String |
toString() |
long |
ttl()
Gets entry's TTL.
|
void |
unmarshal(GridMarshaller marsh)
Perform internal unmarshal of this entry.
|
void |
unmarshalKey(GridMarshaller marsh)
Perform internal key unmarshal of this entry.
|
V |
value()
Gets entry's value.
|
byte[] |
valueBytes() |
GridCacheVersion |
version() |
void |
writeExternal(ObjectOutput out) |
public GridDrRawEntry()
public GridDrRawEntry(K key, @Nullable byte[] keyBytes, @Nullable V val, @Nullable byte[] valBytes, long ttl, long expireTime, GridCacheVersion ver)
key - Key.keyBytes - Key bytes.val - Value.valBytes - Value bytes.expireTime - Expire time.ttl - TTL.ver - Version.public K key()
key in interface GridDrEntry<K,V>public byte[] keyBytes()
public V value()
value in interface GridDrEntry<K,V>public byte[] valueBytes()
public long ttl()
ttl in interface GridDrEntry<K,V>public long expireTime()
expireTime in interface GridDrEntry<K,V>public byte dataCenterId()
dataCenterId in interface GridDrEntry<K,V>public int topologyVersion()
topologyVersion in interface GridDrEntry<K,V>public long order()
order in interface GridDrEntry<K,V>public long globalTime()
globalTime in interface GridDrEntry<K,V>public GridCacheVersion version()
public int size()
public void unmarshal(GridMarshaller marsh) throws GridException
marsh - Marshaller.GridException - If failed.public void unmarshalKey(GridMarshaller marsh) throws GridException
marsh - Marshaller.GridException - If failed.public void marshal(GridMarshaller marsh) throws GridException
marsh - Marshaller.GridException - If failed.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2014. All rights reserved.