public class CacheObjectImpl extends CacheObjectAdapter
val, valBytesTYPE_BINARY, TYPE_BINARY_ENUM, TYPE_BYTE_ARR, TYPE_REGULAR| Constructor and Description |
|---|
CacheObjectImpl() |
CacheObjectImpl(Object val,
byte[] valBytes) |
| Modifier and Type | Method and Description |
|---|---|
byte |
directType()
Gets message type.
|
boolean |
equals(Object obj) |
void |
finishUnmarshal(CacheObjectContext ctx,
ClassLoader ldr) |
int |
hashCode() |
boolean |
isPlatformType()
Gets flag indicating whether object value is a platform type.
|
void |
onAckReceived()
Method called when ack message received.
|
CacheObject |
prepareForCache(CacheObjectContext ctx)
Prepares cache object for cache (e.g. copies user-provided object if needed).
|
void |
prepareMarshal(CacheObjectContext ctx) |
<T> T |
value(CacheObjectContext ctx,
boolean cpy) |
byte[] |
valueBytes(CacheObjectContext ctx) |
cacheObjectType, fieldsCount, needCopy, readExternal, readFrom, toString, writeExternal, writeTopublic CacheObjectImpl()
public CacheObjectImpl(Object val, byte[] valBytes)
val - Value.valBytes - Value bytes.public boolean isPlatformType()
IgniteCache.withKeepBinary() is used or not.@Nullable public <T> T value(CacheObjectContext ctx, boolean cpy)
ctx - Context.cpy - If true need to copy value.public byte[] valueBytes(CacheObjectContext ctx) throws IgniteCheckedException
ctx - Context.IgniteCheckedException - If failed.public void prepareMarshal(CacheObjectContext ctx) throws IgniteCheckedException
ctx - Context.IgniteCheckedException - If failed.public void finishUnmarshal(CacheObjectContext ctx, ClassLoader ldr) throws IgniteCheckedException
ctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public void onAckReceived()
public byte directType()
public CacheObject prepareForCache(CacheObjectContext ctx)
ctx - Cache context.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.7.0 Release Date : August 1 2016