public class GridCacheEntryInfo extends Object implements Message
| Constructor and Description |
|---|
GridCacheEntryInfo() |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheId() |
void |
cacheId(int cacheId) |
byte |
directType()
Gets message type.
|
long |
expireTime() |
void |
expireTime(long expireTime) |
byte |
fieldsCount()
Gets fields count.
|
boolean |
isDeleted() |
boolean |
isNew() |
KeyCacheObject |
key() |
void |
key(KeyCacheObject key) |
byte[] |
keyBytes() |
void |
keyBytes(byte[] bytes) |
void |
marshal(GridCacheContext ctx) |
int |
marshalledSize(GridCacheContext ctx) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
void |
setDeleted(boolean deleted) |
void |
setNew(boolean isNew) |
String |
toString() |
long |
ttl() |
void |
ttl(long ttl) |
void |
unmarshal(GridCacheContext ctx,
ClassLoader clsLdr)
Unmarshalls entry.
|
void |
unmarshalValue(GridCacheContext<?,?> ctx,
ClassLoader ldr) |
CacheObject |
value() |
void |
value(CacheObject val) |
GridCacheVersion |
version() |
void |
version(GridCacheVersion ver) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
public int cacheId()
public void cacheId(int cacheId)
cacheId - Cache ID.public void key(KeyCacheObject key)
key - Entry key.public void keyBytes(byte[] bytes)
bytes - Key bytes.public byte[] keyBytes()
public KeyCacheObject key()
public CacheObject value()
public void value(CacheObject val)
val - Entry value.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 boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface Messagepublic void unmarshalValue(GridCacheContext<?,?> ctx, ClassLoader ldr) throws IgniteCheckedException
ctx - Context.ldr - Loader.IgniteCheckedException - If failed.public int marshalledSize(GridCacheContext ctx) throws IgniteCheckedException
IgniteCheckedExceptionpublic void marshal(GridCacheContext ctx) throws IgniteCheckedException
ctx - Cache context.IgniteCheckedException - In case of error.public void unmarshal(GridCacheContext ctx, ClassLoader clsLdr) throws IgniteCheckedException
ctx - Cache context.clsLdr - Class loader.IgniteCheckedException - If unmarshalling failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015