Class CacheEvictionEntry
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheEvictionEntry
-
- All Implemented Interfaces:
Serializable,Message
public class CacheEvictionEntry extends Object implements Message
- 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 CacheEvictionEntry()Required byMessage.CacheEvictionEntry(KeyCacheObject key, GridCacheVersion ver, boolean near)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortdirectType()Gets message type.bytefieldsCount()Gets fields count.voidfinishUnmarshal(GridCacheContext ctx, ClassLoader ldr)KeyCacheObjectkey()booleannear()voidonAckReceived()Method called when ack message received.voidprepareMarshal(GridCacheContext ctx)booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.GridCacheVersionversion()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Constructor Detail
-
CacheEvictionEntry
public CacheEvictionEntry()
Required byMessage.
-
CacheEvictionEntry
public CacheEvictionEntry(KeyCacheObject key, GridCacheVersion ver, boolean near)
- Parameters:
key- Key.ver- Version.near-trueif key should be evicted from near cache.
-
-
Method Detail
-
key
public KeyCacheObject key()
- Returns:
- Key.
-
version
public GridCacheVersion version()
- Returns:
- Version.
-
near
public boolean near()
- Returns:
Trueif key should be evicted from near cache.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
prepareMarshal
public void prepareMarshal(GridCacheContext ctx) throws IgniteCheckedException
- Parameters:
ctx- Context.- Throws:
IgniteCheckedException- If failed.
-
finishUnmarshal
public void finishUnmarshal(GridCacheContext ctx, ClassLoader ldr) throws IgniteCheckedException
- Parameters:
ctx- Context.ldr- Class loader.- Throws:
IgniteCheckedException- If failed.
-
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.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
-