Class ClientCacheRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.client.ClientRequest
-
- org.apache.ignite.internal.processors.platform.client.cache.ClientCacheRequest
-
- All Implemented Interfaces:
ClientListenerRequest
- Direct Known Subclasses:
ClientCacheClearRequest,ClientCacheGetConfigurationRequest,ClientCacheGetSizeRequest,ClientCacheKeyRequest,ClientCacheKeysRequest,ClientCacheNodePartitionsRequest,ClientCachePutAllConflictRequest,ClientCachePutAllRequest,ClientCacheQueryContinuousRequest,ClientCacheQueryRequest,ClientCacheRemoveAllConflictRequest,ClientCacheRemoveAllRequest
public abstract class ClientCacheRequest extends ClientRequest
Cache request.
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.processors.odbc.ClientListenerRequest
HANDSHAKE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IgniteCache<Object,Object>cache(ClientConnectionContext ctx)Gets the cache for current cache id, with binary mode enabled.protected DynamicCacheDescriptorcacheDescriptor(ClientConnectionContext ctx)Gets the cache descriptor.static DynamicCacheDescriptorcacheDescriptor(ClientConnectionContext ctx, int cacheId)Gets the cache descriptor.protected intcacheId()Gets the cache id.protected IgniteInternalCache<Object,Object>cachex(ClientConnectionContext ctx)Gets the internal cache implementation, with binary mode enabled.protected booleanisKeepBinary()Gets a value indicating whether keepBinary flag is set in this request.protected booleanisTransactional()Gets a value indicating whether request was made under transaction.protected IgniteCache<Object,Object>rawCache(ClientConnectionContext ctx)Gets the cache for current cache id, ignoring any flags.-
Methods inherited from class org.apache.ignite.internal.processors.platform.client.ClientRequest
isAsync, process, processAsync, requestId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.odbc.ClientListenerRequest
beforeStartupRequest
-
-
-
-
Method Detail
-
cache
protected IgniteCache<Object,Object> cache(ClientConnectionContext ctx)
Gets the cache for current cache id, with binary mode enabled.- Parameters:
ctx- Kernal context.- Returns:
- Cache.
-
cachex
protected IgniteInternalCache<Object,Object> cachex(ClientConnectionContext ctx)
Gets the internal cache implementation, with binary mode enabled.- Parameters:
ctx- Kernal context.- Returns:
- Cache.
-
isKeepBinary
protected boolean isKeepBinary()
Gets a value indicating whether keepBinary flag is set in this request.- Returns:
- keepBinary flag value.
-
isTransactional
protected boolean isTransactional()
Gets a value indicating whether request was made under transaction.- Returns:
- Flag value.
-
rawCache
protected IgniteCache<Object,Object> rawCache(ClientConnectionContext ctx)
Gets the cache for current cache id, ignoring any flags.- Parameters:
ctx- Kernal context.- Returns:
- Cache.
-
cacheDescriptor
protected DynamicCacheDescriptor cacheDescriptor(ClientConnectionContext ctx)
Gets the cache descriptor.- Parameters:
ctx- Context.- Returns:
- Cache descriptor.
-
cacheDescriptor
public static DynamicCacheDescriptor cacheDescriptor(ClientConnectionContext ctx, int cacheId)
Gets the cache descriptor.- Parameters:
ctx- Context.cacheId- Cache id.- Returns:
- Cache descriptor.
-
cacheId
protected int cacheId()
Gets the cache id.- Returns:
- Cache id.
-
-