public interface CacheObject extends Message
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE_BINARY |
static byte |
TYPE_BINARY_ENUM |
static byte |
TYPE_BYTE_ARR |
static byte |
TYPE_REGULAR |
| Modifier and Type | Method and Description |
|---|---|
byte |
cacheObjectType() |
void |
finishUnmarshal(CacheObjectContext ctx,
ClassLoader ldr) |
boolean |
isPlatformType()
Gets flag indicating whether object value is a platform type.
|
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) |
directType, fieldsCount, onAckReceived, readFrom, writeTostatic final byte TYPE_REGULAR
static final byte TYPE_BYTE_ARR
static final byte TYPE_BINARY
static final byte TYPE_BINARY_ENUM
@Nullable <T> T value(CacheObjectContext ctx, boolean cpy)
ctx - Context.cpy - If true need to copy value.byte[] valueBytes(CacheObjectContext ctx) throws IgniteCheckedException
ctx - Context.IgniteCheckedException - If failed.byte cacheObjectType()
boolean isPlatformType()
IgniteCache.withKeepBinary() is used or not.CacheObject prepareForCache(CacheObjectContext ctx)
ctx - Cache context.void finishUnmarshal(CacheObjectContext ctx, ClassLoader ldr) throws IgniteCheckedException
ctx - Context.ldr - Class loader.IgniteCheckedException - If failed.void prepareMarshal(CacheObjectContext ctx) throws IgniteCheckedException
ctx - Context.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017