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()
If you want to use atomic operations inside transactions you should allow it before transaction start.
|
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, localPeek, localPreloadPartition, localSize, localSizeLong, localSizeLong, lock, lockAll, lostPartitions, metrics, metrics, 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, withSkipStorederegisterCacheEntryListener, getCacheManager, getName, isClosed, iterator, loadAll, registerCacheEntryListener, unwrapforEach, spliteratorfuture, isAsyncreadExternal, writeExternalGridCacheContext<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 StringsUUID and array of UUIDsDate and array of DatesTimestamp and array of Timestamps 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 true.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.15.0 Release Date : April 25 2023