public class PlatformCache extends PlatformAbstractTarget
ERROR, FALSE, log, platformCtx, TRUE| Constructor and Description |
|---|
PlatformCache(PlatformContext platformCtx,
IgniteCache cache,
boolean keepBinary)
Constructor.
|
PlatformCache(PlatformContext platformCtx,
IgniteCache cache,
boolean keepBinary,
PlatformCacheExtension[] exts)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
convertException(Exception e)
Convert caught exception.
|
protected IgniteInternalFuture |
currentFuture()
|
protected PlatformFutureUtils.Writer |
futureWriter(int opId)
|
protected long |
processInLongOutLong(int type,
long val)
Process IN operation.
|
protected long |
processInStreamOutLong(int type,
BinaryRawReaderEx reader,
PlatformMemory mem)
Process IN operation.
|
protected Object |
processInStreamOutObject(int type,
BinaryRawReaderEx reader)
Process IN operation with managed object as result.
|
protected Object |
processOutObject(int type)
Process OUT operation.
|
protected void |
processOutStream(int type,
BinaryRawWriterEx writer)
Process OUT operation.
|
IgniteCache |
rawCache() |
static void |
writeCacheMetrics(BinaryRawWriter writer,
CacheMetrics metrics)
Writes cache metrics.
|
long |
writeResult(PlatformMemory mem,
Object obj)
Writes the result to reused stream, if any.
|
long |
writeResult(PlatformMemory mem,
Object obj,
PlatformWriterClosure clo)
Writes the result to reused stream, if any.
|
inLongOutLong, inObjectStreamOutObjectStream, inStreamOutLong, inStreamOutObject, inStreamOutStream, listenFuture, listenFutureForOperation, outObject, outStream, platformContext, processInObjectStreamOutObjectStream, processInStreamOutLong, processInStreamOutStream, readAndListenFuture, readAndListenFuture, readAndListenFuture, readAndListenFuture, readAndListenFuture, throwUnsupportedpublic static final int OP_CLEAR
public static final int OP_CLEAR_ALL
public static final int OP_CONTAINS_KEY
public static final int OP_CONTAINS_KEYS
public static final int OP_GET
public static final int OP_GET_ALL
public static final int OP_GET_AND_PUT
public static final int OP_GET_AND_PUT_IF_ABSENT
public static final int OP_GET_AND_REMOVE
public static final int OP_GET_AND_REPLACE
public static final int OP_GET_NAME
public static final int OP_INVOKE
public static final int OP_INVOKE_ALL
public static final int OP_IS_LOCAL_LOCKED
public static final int OP_LOAD_CACHE
public static final int OP_LOC_EVICT
public static final int OP_LOC_LOAD_CACHE
public static final int OP_LOC_PROMOTE
public static final int OP_LOCAL_CLEAR
public static final int OP_LOCAL_CLEAR_ALL
public static final int OP_LOCK
public static final int OP_LOCK_ALL
public static final int OP_LOCAL_METRICS
public static final int OP_PUT_IF_ABSENT
public static final int OP_QRY_CONTINUOUS
public static final int OP_QRY_SCAN
public static final int OP_QRY_SQL
public static final int OP_QRY_SQL_FIELDS
public static final int OP_QRY_TXT
public static final int OP_REMOVE_ALL
public static final int OP_REMOVE_BOOL
public static final int OP_REMOVE_OBJ
public static final int OP_REPLACE_2
public static final int OP_REPLACE_3
public static final int OP_GET_CONFIG
public static final int OP_LOAD_ALL
public static final int OP_CLEAR_CACHE
public static final int OP_WITH_ASYNC
public static final int OP_REMOVE_ALL2
public static final int OP_WITH_KEEP_BINARY
public static final int OP_WITH_EXPIRY_POLICY
public static final int OP_WITH_NO_RETRIES
public static final int OP_WITH_SKIP_STORE
public static final int OP_SIZE
public static final int OP_ITERATOR
public static final int OP_LOC_ITERATOR
public static final int OP_ENTER_LOCK
public static final int OP_EXIT_LOCK
public static final int OP_TRY_ENTER_LOCK
public static final int OP_CLOSE_LOCK
public static final int OP_REBALANCE
public static final int OP_SIZE_LOC
public static final int OP_PUT_ASYNC
public static final int OP_CLEAR_CACHE_ASYNC
public static final int OP_CLEAR_ALL_ASYNC
public static final int OP_REMOVE_ALL2_ASYNC
public static final int OP_SIZE_ASYNC
public static final int OP_CLEAR_ASYNC
public static final int OP_LOAD_CACHE_ASYNC
public static final int OP_LOC_LOAD_CACHE_ASYNC
public static final int OP_PUT_ALL_ASYNC
public static final int OP_REMOVE_ALL_ASYNC
public static final int OP_GET_ASYNC
public static final int OP_CONTAINS_KEY_ASYNC
public static final int OP_CONTAINS_KEYS_ASYNC
public static final int OP_REMOVE_BOOL_ASYNC
public static final int OP_REMOVE_OBJ_ASYNC
public static final int OP_GET_ALL_ASYNC
public static final int OP_GET_AND_PUT_ASYNC
public static final int OP_GET_AND_PUT_IF_ABSENT_ASYNC
public static final int OP_GET_AND_REMOVE_ASYNC
public static final int OP_GET_AND_REPLACE_ASYNC
public static final int OP_REPLACE_2_ASYNC
public static final int OP_REPLACE_3_ASYNC
public static final int OP_INVOKE_ASYNC
public static final int OP_INVOKE_ALL_ASYNC
public static final int OP_PUT_IF_ABSENT_ASYNC
public static final int OP_EXTENSION
public static final int OP_GLOBAL_METRICS
public PlatformCache(PlatformContext platformCtx, IgniteCache cache, boolean keepBinary)
platformCtx - Context.cache - Underlying cache.keepBinary - Keep binary flag.public PlatformCache(PlatformContext platformCtx, IgniteCache cache, boolean keepBinary, PlatformCacheExtension[] exts)
platformCtx - Context.cache - Underlying cache.keepBinary - Keep binary flag.exts - Extensions.public IgniteCache rawCache()
protected long processInStreamOutLong(int type,
BinaryRawReaderEx reader,
PlatformMemory mem)
throws IgniteCheckedException
processInStreamOutLong in class PlatformAbstractTargettype - Type.reader - Binary reader.IgniteCheckedException - In case of exception.public long writeResult(PlatformMemory mem, Object obj)
public long writeResult(PlatformMemory mem, Object obj, PlatformWriterClosure clo)
protected Object processInStreamOutObject(int type, BinaryRawReaderEx reader) throws IgniteCheckedException
processInStreamOutObject in class PlatformAbstractTargettype - Type.reader - Binary reader.IgniteCheckedException - In case of exception.protected void processOutStream(int type,
BinaryRawWriterEx writer)
throws IgniteCheckedException
processOutStream in class PlatformAbstractTargettype - Type.writer - Binary writer.IgniteCheckedException - In case of exception.protected Object processOutObject(int type) throws IgniteCheckedException
processOutObject in class PlatformAbstractTargettype - Type.IgniteCheckedException - In case of exception.protected long processInLongOutLong(int type,
long val)
throws IgniteCheckedException
processInLongOutLong in class PlatformAbstractTargettype - Type.val - Value.IgniteCheckedException - In case of exception.public Exception convertException(Exception e)
convertException in class PlatformAbstractTargete - Exception to convert.protected IgniteInternalFuture currentFuture() throws IgniteCheckedException
currentFuture in class PlatformAbstractTargetIgniteCheckedException - If failed.@Nullable protected PlatformFutureUtils.Writer futureWriter(int opId)
futureWriter in class PlatformAbstractTargetopId - Operation id.public static void writeCacheMetrics(BinaryRawWriter writer, CacheMetrics metrics)
writer - Writer.metrics - Metrics.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016