Class GridCacheEntryInfo
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheEntryInfo
-
- All Implemented Interfaces:
Serializable,Message
public class GridCacheEntryInfo extends Object implements Message
Entry information that gets passed over wire.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description GridCacheEntryInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcacheId()voidcacheId(int cacheId)shortdirectType()Gets message type.longexpireTime()voidexpireTime(long expireTime)bytefieldsCount()Gets fields count.booleanisDeleted()booleanisNew()KeyCacheObjectkey()voidkey(KeyCacheObject key)voidmarshal(CacheObjectContext ctx)voidmarshal(GridCacheContext ctx)intmarshalledSize(CacheObjectContext ctx)voidonAckReceived()Method called when ack message received.booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.voidsetDeleted(boolean deleted)voidsetNew(boolean isNew)StringtoString()longttl()voidttl(long ttl)voidunmarshal(CacheObjectContext ctx, ClassLoader clsLdr)Unmarshalls entry.voidunmarshal(GridCacheContext ctx, ClassLoader clsLdr)Unmarshalls entry.voidunmarshalValue(GridCacheContext<?,?> ctx, ClassLoader ldr)CacheObjectvalue()voidvalue(CacheObject val)GridCacheVersionversion()voidversion(GridCacheVersion ver)booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Method Detail
-
cacheId
public int cacheId()
- Returns:
- Cache ID.
-
cacheId
public void cacheId(int cacheId)
- Parameters:
cacheId- Cache ID.
-
key
public void key(KeyCacheObject key)
- Parameters:
key- Entry key.
-
key
public KeyCacheObject key()
- Returns:
- Entry key.
-
value
public CacheObject value()
- Returns:
- Entry value.
-
value
public void value(CacheObject val)
- Parameters:
val- Entry value.
-
expireTime
public long expireTime()
- Returns:
- Expire time.
-
expireTime
public void expireTime(long expireTime)
- Parameters:
expireTime- Expiration time.
-
ttl
public long ttl()
- Returns:
- Time to live.
-
ttl
public void ttl(long ttl)
- Parameters:
ttl- Time to live.
-
version
public GridCacheVersion version()
- Returns:
- Version.
-
version
public void version(GridCacheVersion ver)
- Parameters:
ver- Version.
-
isNew
public boolean isNew()
- Returns:
- New flag.
-
setNew
public void setNew(boolean isNew)
- Parameters:
isNew- New flag.
-
isDeleted
public boolean isDeleted()
- Returns:
Trueif deleted.
-
setDeleted
public void setDeleted(boolean deleted)
- Parameters:
deleted- Deleted flag.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
unmarshalValue
public void unmarshalValue(GridCacheContext<?,?> ctx, ClassLoader ldr) throws IgniteCheckedException
- Parameters:
ctx- Context.ldr- Loader.- Throws:
IgniteCheckedException- If failed.
-
marshalledSize
public int marshalledSize(CacheObjectContext ctx) throws IgniteCheckedException
- Parameters:
ctx- Cache object context.- Returns:
- Marshalled size.
- Throws:
IgniteCheckedException- If failed.
-
marshal
public void marshal(GridCacheContext ctx) throws IgniteCheckedException
- Parameters:
ctx- Cache context.- Throws:
IgniteCheckedException- In case of error.
-
marshal
public void marshal(CacheObjectContext ctx) throws IgniteCheckedException
- Parameters:
ctx- Cache context.- Throws:
IgniteCheckedException- In case of error.
-
unmarshal
public void unmarshal(GridCacheContext ctx, ClassLoader clsLdr) throws IgniteCheckedException
Unmarshalls entry.- Parameters:
ctx- Cache context.clsLdr- Class loader.- Throws:
IgniteCheckedException- If unmarshalling failed.
-
unmarshal
public void unmarshal(CacheObjectContext ctx, ClassLoader clsLdr) throws IgniteCheckedException
Unmarshalls entry.- Parameters:
ctx- Cache context.clsLdr- Class loader.- Throws:
IgniteCheckedException- If unmarshalling failed.
-
-