public interface IgniteCacheProxy<K,V> extends IgniteCache<K,V>, Externalizable
Modifier and Type | Method and Description |
---|---|
IgniteCacheProxy<K,V> |
cacheNoGate()
Gets cache proxy which does not acquire read lock on gateway enter, should be used only if grid read lock is
externally acquired.
|
IgniteFuture<?> |
closeAsync() |
void |
closeProxy()
Closes this proxy instance.
|
GridCacheContext<K,V> |
context() |
IgniteFuture<?> |
destroyAsync() |
GridCacheProxyImpl<K,V> |
internalProxy() |
boolean |
isProxyClosed() |
<K1,V1> IgniteCache<K1,V1> |
keepBinary()
Creates projection that will operate with binary objects.
|
List<FieldsQueryCursor<List<?>>> |
queryMultipleStatements(SqlFieldsQuery qry)
Queries cache with multiple statements.
|
IgniteCache<K,V> |
skipStore() |
IgniteCache<K,V> |
withAllowAtomicOpsInTx()
By default atomic operations are allowed in transaction.
|
IgniteCache<K,V> |
withDataCenterId(byte dataCenterId) |
clear, clear, clearAll, clearAllAsync, clearAsync, clearAsync, clearStatistics, close, containsKey, containsKeyAsync, containsKeys, containsKeysAsync, destroy, enableStatistics, get, getAll, getAllAsync, getAllOutTx, getAllOutTxAsync, getAndPut, getAndPutAsync, getAndPutIfAbsent, getAndPutIfAbsentAsync, getAndRemove, getAndRemoveAsync, getAndReplace, getAndReplaceAsync, getAsync, getConfiguration, getEntries, getEntriesAsync, getEntry, getEntryAsync, indexReadyFuture, invoke, invoke, invokeAll, invokeAll, invokeAll, invokeAllAsync, invokeAllAsync, invokeAllAsync, invokeAsync, invokeAsync, isLocalLocked, loadCache, loadCacheAsync, localClear, localClearAll, localEntries, localEvict, localLoadCache, localLoadCacheAsync, localMetrics, localMxBean, localPeek, localPreloadPartition, localSize, localSizeLong, localSizeLong, lock, lockAll, lostPartitions, metrics, metrics, mxBean, preloadPartition, preloadPartitionAsync, put, putAll, putAllAsync, putAsync, putIfAbsent, putIfAbsentAsync, query, query, query, queryDetailMetrics, queryMetrics, rebalance, remove, remove, removeAll, removeAll, removeAllAsync, removeAllAsync, removeAsync, removeAsync, replace, replace, replaceAsync, replaceAsync, resetQueryDetailMetrics, resetQueryMetrics, size, sizeAsync, sizeLong, sizeLong, sizeLongAsync, sizeLongAsync, withAsync, withExpiryPolicy, withKeepBinary, withNoRetries, withPartitionRecover, withReadRepair, withSkipStore
deregisterCacheEntryListener, getCacheManager, getName, isClosed, iterator, loadAll, registerCacheEntryListener, unwrap
forEach, spliterator
future, isAsync
readExternal, writeExternal
GridCacheContext<K,V> context()
IgniteCacheProxy<K,V> cacheNoGate()
<K1,V1> IgniteCache<K1,V1> keepBinary()
Projection returned by this method will force cache not to deserialize binary objects, so keys and values will be returned from cache API methods without changes. Therefore, signature of the projection can contain only following types:
BinaryObject
for binary classesString
and array of String
sUUID
and array of UUID
sDate
and array of Date
sTimestamp
and array of Timestamp
s For example, if you use Integer
as a key and Value
class as a value (which will be
stored in binary format), you should acquire following projection to avoid deserialization:
IgniteInternalCacheprj = cache.keepBinary(); // Value is not deserialized and returned in binary format. GridBinaryObject po = prj.get(1);
Note that this method makes sense only if cache is working in binary mode (CacheConfiguration#isBinaryEnabled()
returns true
. If not, this method is no-op and will return
current projection.
IgniteCache<K,V> withDataCenterId(byte dataCenterId)
dataCenterId
- Data center ID.IgniteCache<K,V> skipStore()
IgniteCache<K,V> withAllowAtomicOpsInTx()
IGNITE_ALLOW_ATOMIC_OPS_IN_TX
to false
.
If you want to use atomic operations inside transactions in case they are restricted by system property, you should allow it before transaction start.
withAllowAtomicOpsInTx
in interface IgniteCache<K,V>
GridCacheProxyImpl<K,V> internalProxy()
boolean isProxyClosed()
True
if proxy was closed.void closeProxy()
IgniteFuture<?> destroyAsync()
IgniteFuture<?> closeAsync()
List<FieldsQueryCursor<List<?>>> queryMultipleStatements(SqlFieldsQuery qry)
SqlFieldsQuery
class.qry
- SqlFieldsQuery.SqlFieldsQuery
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022