public class GridCacheEntryInfo<K,V> extends Object implements Externalizable
| Constructor and Description |
|---|
GridCacheEntryInfo() |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheId() |
void |
cacheId(int cacheId) |
long |
expireTime() |
void |
expireTime(long expireTime) |
boolean |
isDeleted() |
boolean |
isNew() |
K |
key() |
void |
key(K key) |
byte[] |
keyBytes() |
void |
keyBytes(byte[] keyBytes) |
void |
marshal(GridCacheSharedContext<K,V> ctx) |
void |
readExternal(ObjectInput in) |
void |
setDeleted(boolean deleted) |
void |
setNew(boolean isNew) |
String |
toString() |
long |
ttl() |
void |
ttl(long ttl) |
void |
unmarshal(GridCacheContext<K,V> ctx,
ClassLoader clsLdr)
Unmarshalls entry.
|
void |
unmarshalValue(GridCacheContext<K,V> ctx,
ClassLoader ldr) |
V |
value() |
void |
value(V val) |
byte[] |
valueBytes() |
void |
valueBytes(byte[] valBytes) |
GridCacheVersion |
version() |
void |
version(GridCacheVersion ver) |
void |
writeExternal(ObjectOutput out) |
public int cacheId()
public void cacheId(int cacheId)
cacheId - Cache ID.public void key(K key)
key - Entry key.public K key()
public byte[] keyBytes()
public void keyBytes(byte[] keyBytes)
keyBytes - Key bytes.public V value()
public void value(V val)
val - Entry value.public byte[] valueBytes()
public void valueBytes(byte[] valBytes)
valBytes - Value bytes.public long expireTime()
public void expireTime(long expireTime)
expireTime - Expiration time.public long ttl()
public void ttl(long ttl)
ttl - Time to live.public GridCacheVersion version()
public void version(GridCacheVersion ver)
ver - Version.public boolean isNew()
public void setNew(boolean isNew)
isNew - New flag.public boolean isDeleted()
True if deleted.public void setDeleted(boolean deleted)
deleted - Deleted flag.public void unmarshalValue(GridCacheContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
ctx - Context.ldr - Loader.IgniteCheckedException - If failed.public void marshal(GridCacheSharedContext<K,V> ctx) throws IgniteCheckedException
ctx - Cache context.IgniteCheckedException - In case of error.public void unmarshal(GridCacheContext<K,V> ctx, ClassLoader clsLdr) throws IgniteCheckedException
ctx - Cache context.clsLdr - Class loader.IgniteCheckedException - If unmarshalling failed.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015