public abstract class CacheObjectAdapter extends Object implements CacheObject, Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected Object |
val |
protected byte[] |
valBytes |
TYPE_BINARY, TYPE_BINARY_ENUM, TYPE_BYTE_ARR, TYPE_REGULAR| Constructor and Description |
|---|
CacheObjectAdapter() |
| Modifier and Type | Method and Description |
|---|---|
byte |
cacheObjectType() |
byte |
fieldsCount()
Gets fields count.
|
protected boolean |
needCopy(CacheObjectContext ctx) |
void |
readExternal(ObjectInput in) |
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfinishUnmarshal, isPlatformType, prepareForCache, prepareMarshal, value, valueBytesdirectType, onAckReceived@GridToStringInclude protected Object val
protected byte[] valBytes
protected boolean needCopy(CacheObjectContext ctx)
ctx - Context.True need to copy value returned to user.public byte cacheObjectType()
cacheObjectType in interface CacheObjectpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic boolean readFrom(ByteBuffer buf, MessageReader reader)
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
public byte fieldsCount()
fieldsCount in interface Message
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016