public class CacheObjectImpl extends CacheObjectAdapter
val, valBytesTYPE_BINARY, TYPE_BINARY_ENUM, TYPE_BYTE_ARR, TYPE_REGULARDIRECT_TYPE_SIZE| Constructor and Description |
|---|
CacheObjectImpl() |
CacheObjectImpl(Object val,
byte[] valBytes) |
| Modifier and Type | Method and Description |
|---|---|
short |
directType()
Gets message type.
|
boolean |
equals(Object obj) |
void |
finishUnmarshal(CacheObjectValueContext 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(CacheObjectValueContext ctx) |
<T> T |
value(CacheObjectValueContext ctx,
boolean cpy) |
<T> T |
value(CacheObjectValueContext ctx,
boolean cpy,
ClassLoader ldr)
Deserializes a value from an internal representation.
|
byte[] |
valueBytes(CacheObjectValueContext ctx) |
cacheObjectType, fieldsCount, needCopy, objectPutSize, putValue, putValue, putValue, putValue, putValue, readExternal, readFrom, toString, valueBytesLength, 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(CacheObjectValueContext ctx, boolean cpy)
ctx - Context.cpy - If true need to copy value.@Nullable public <T> T value(CacheObjectValueContext ctx, boolean cpy, ClassLoader ldr)
ctx - Context.cpy - If true need to copy value.ldr - Class loader, if it is null, default class loader will be used.public byte[] valueBytes(CacheObjectValueContext ctx) throws IgniteCheckedException
ctx - Context.IgniteCheckedException - If failed.public void prepareMarshal(CacheObjectValueContext ctx) throws IgniteCheckedException
ctx - Context.IgniteCheckedException - If failed.public void finishUnmarshal(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException
ctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public void onAckReceived()
public short directType()
public CacheObject prepareForCache(CacheObjectContext ctx)
ctx - Cache context.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021