public class DataStreamerEntry extends Object implements Map.Entry<KeyCacheObject,CacheObject>, Message
| Modifier and Type | Field and Description |
|---|---|
protected KeyCacheObject |
key |
protected CacheObject |
val |
DIRECT_TYPE_SIZE| Constructor and Description |
|---|
DataStreamerEntry() |
DataStreamerEntry(KeyCacheObject key,
CacheObject val) |
| Modifier and Type | Method and Description |
|---|---|
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
KeyCacheObject |
getKey() |
CacheObject |
getValue() |
void |
onAckReceived()
Method called when ack message received.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
CacheObject |
setValue(CacheObject val) |
<K,V> Map.Entry<K,V> |
toEntry(GridCacheContext ctx,
boolean keepBinary) |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCode@GridToStringInclude protected KeyCacheObject key
@GridToStringInclude protected CacheObject val
public DataStreamerEntry()
public DataStreamerEntry(KeyCacheObject key, CacheObject val)
key - Key.val - Value.public KeyCacheObject getKey()
getKey in interface Map.Entry<KeyCacheObject,CacheObject>public CacheObject getValue()
getValue in interface Map.Entry<KeyCacheObject,CacheObject>public CacheObject setValue(CacheObject val)
setValue in interface Map.Entry<KeyCacheObject,CacheObject>public <K,V> Map.Entry<K,V> toEntry(GridCacheContext ctx, boolean keepBinary)
ctx - Cache context.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 Message
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018