public class GridCacheRawVersionedEntry<K,V> extends DataStreamerEntry implements GridCacheVersionedEntry<K,V>, GridCacheVersionable, Externalizable
key, valDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridCacheRawVersionedEntry()
Externalizable support. |
GridCacheRawVersionedEntry(byte[] keyBytes,
byte[] valBytes,
long ttl,
long expireTime,
GridCacheVersion ver)
Constructor used in receiver hub where marshalled key and value are available and we do not want to
unmarshal value.
|
GridCacheRawVersionedEntry(KeyCacheObject key,
@Nullable CacheObject val,
long ttl,
long expireTime,
GridCacheVersion ver)
Constructor used for local store load when key and value are available.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
dataCenterId()
Gets ID of initiator data center.
|
short |
directType()
Gets message type.
|
long |
expireTime()
Gets entry's expire time.
|
byte |
fieldsCount()
Gets fields count.
|
K |
key()
Gets entry's key.
|
void |
key(KeyCacheObject key) |
byte[] |
keyBytes() |
void |
marshal(CacheObjectContext ctx,
Marshaller marsh)
Perform internal marshal of this entry before it will be serialized.
|
long |
order()
Gets entry's order in initiator data center.
|
void |
prepareDirectMarshal(CacheObjectContext ctx) |
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
int |
topologyVersion()
Gets entry's topology version in initiator data center.
|
String |
toString() |
long |
ttl()
Gets entry's TTL.
|
void |
unmarshal(CacheObjectContext ctx) |
void |
unmarshal(CacheObjectContext ctx,
Marshaller marsh)
Perform internal unmarshal of this entry.
|
void |
unmarshalKey(CacheObjectContext ctx,
Marshaller marsh)
Perform internal key unmarshal of this entry.
|
V |
value(CacheObjectValueContext ctx)
Gets entry's value.
|
byte[] |
valueBytes() |
GridCacheVersion |
version() |
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
getKey, getValue, onAckReceived, setValue, toEntryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodepublic GridCacheRawVersionedEntry()
Externalizable support.public GridCacheRawVersionedEntry(KeyCacheObject key, @Nullable @Nullable CacheObject val, long ttl, long expireTime, GridCacheVersion ver)
key - Key.val - Value.expireTime - Expire time.ttl - TTL.ver - Version.public GridCacheRawVersionedEntry(byte[] keyBytes,
byte[] valBytes,
long ttl,
long expireTime,
GridCacheVersion ver)
keyBytes - Key.valBytes - Value bytes.expireTime - Expire time.ttl - TTL.ver - Version.public K key()
key in interface GridCacheVersionedEntry<K,V>public void key(KeyCacheObject key)
key - Key.public byte[] keyBytes()
public V value(CacheObjectValueContext ctx)
value in interface GridCacheVersionedEntry<K,V>ctx - Object value context.public byte[] valueBytes()
public long ttl()
ttl in interface GridCacheVersionedEntry<K,V>public long expireTime()
expireTime in interface GridCacheVersionedEntry<K,V>public byte dataCenterId()
dataCenterId in interface GridCacheVersionedEntry<K,V>public int topologyVersion()
topologyVersion in interface GridCacheVersionedEntry<K,V>public long order()
order in interface GridCacheVersionedEntry<K,V>public GridCacheVersion version()
version in interface GridCacheVersionablepublic void unmarshal(CacheObjectContext ctx, Marshaller marsh) throws IgniteCheckedException
ctx - Context.marsh - Marshaller.IgniteCheckedException - If failed.public void unmarshal(CacheObjectContext ctx) throws IgniteCheckedException
ctx - Context.IgniteCheckedException - If failed.public void unmarshalKey(CacheObjectContext ctx, Marshaller marsh) throws IgniteCheckedException
ctx - Context.marsh - Marshaller.IgniteCheckedException - If failed.public void marshal(CacheObjectContext ctx, Marshaller marsh) throws IgniteCheckedException
ctx - Context.marsh - Marshaller.IgniteCheckedException - If failed.public void prepareDirectMarshal(CacheObjectContext ctx) throws IgniteCheckedException
ctx - Context.IgniteCheckedException - If failed.public short directType()
directType in interface MessagedirectType in class DataStreamerEntrypublic boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class DataStreamerEntrybuf - Byte buffer.reader - Reader.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class DataStreamerEntrybuf - Byte buffer.writer - Writer.public byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class DataStreamerEntrypublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic String toString()
toString in class DataStreamerEntry
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021