public class GridCacheEntryInfo extends Object implements Message
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridCacheEntryInfo() |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheId() |
void |
cacheId(int cacheId) |
short |
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) |
void |
marshal(CacheObjectContext ctx) |
void |
marshal(GridCacheContext ctx) |
int |
marshalledSize(CacheObjectContext ctx) |
void |
onAckReceived()
Method called when ack message received.
|
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(CacheObjectContext ctx,
ClassLoader clsLdr)
Unmarshalls entry.
|
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 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 void onAckReceived()
onAckReceived in interface Messagepublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
public boolean readFrom(ByteBuffer buf, MessageReader reader)
public short 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(CacheObjectContext ctx) throws IgniteCheckedException
ctx - Cache object context.IgniteCheckedException - If failed.public void marshal(GridCacheContext ctx) throws IgniteCheckedException
ctx - Cache context.IgniteCheckedException - In case of error.public void marshal(CacheObjectContext 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.public void unmarshal(CacheObjectContext ctx, ClassLoader clsLdr) throws IgniteCheckedException
ctx - Cache context.clsLdr - Class loader.IgniteCheckedException - If unmarshalling failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020