public class CacheContinuousQueryManager<K,V> extends GridCacheManagerAdapter<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheContinuousQueryManager.CacheEntryEventImpl |
protected static class |
CacheContinuousQueryManager.JCacheQueryRemoteFilter
For handler version 2.0 this filter should not be serialized.
|
cctx, log, starting| Constructor and Description |
|---|
CacheContinuousQueryManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelInternalQuery(UUID routineId) |
void |
cancelJCacheQuery(javax.cache.configuration.CacheEntryListenerConfiguration cfg) |
void |
closeBackupUpdateCountersGaps(GridCacheContext cctx,
int part,
AffinityTopologyVersion topVer,
GridLongList gaps)
For cache updates in shared cache group need notify others caches CQ listeners
that generated counter should be skipped.
|
UUID |
executeInternalQuery(javax.cache.event.CacheEntryUpdatedListener<?,?> locLsnr,
CacheEntryEventSerializableFilter rmtFilter,
boolean loc,
boolean notifyExisting,
boolean ignoreClassNotFound,
boolean sync) |
void |
executeJCacheQuery(javax.cache.configuration.CacheEntryListenerConfiguration cfg,
boolean onStart,
boolean keepBinary) |
UUID |
executeQuery(@Nullable javax.cache.event.CacheEntryUpdatedListener locLsnr,
@Nullable ContinuousQueryWithTransformer.EventListener locTransLsnr,
@Nullable CacheEntryEventSerializableFilter<K,V> rmtFilter,
@Nullable javax.cache.configuration.Factory<javax.cache.event.CacheEntryEventFilter<K,V>> rmtFilterFactory,
@Nullable javax.cache.configuration.Factory<IgniteClosure<K,V>> rmtTransFactory,
int bufSize,
long timeInterval,
boolean autoUnsubscribe,
boolean loc,
boolean keepBinary,
boolean includeExpired) |
Iterable<javax.cache.event.CacheEntryEvent<?,?>> |
existingEntries(boolean keepBinary,
javax.cache.event.CacheEntryEventFilter filter) |
void |
flushBackupQueue(AffinityTopologyVersion topVer) |
protected GridTimeoutProcessor.CancelableTask |
getCancelableTask()
USED ONLY FOR TESTING.
|
boolean |
notifyContinuousQueries(@Nullable IgniteInternalTx tx) |
void |
onEntryExpired(GridCacheEntryEx e,
KeyCacheObject key,
CacheObject oldVal) |
void |
onEntryUpdated(KeyCacheObject key,
CacheObject newVal,
CacheObject oldVal,
boolean internal,
int partId,
boolean primary,
boolean preload,
long updateCntr,
@Nullable GridDhtAtomicAbstractUpdateFuture fut,
AffinityTopologyVersion topVer) |
void |
onEntryUpdated(Map<UUID,CacheContinuousQueryListener> lsnrCol,
KeyCacheObject key,
CacheObject newVal,
CacheObject oldVal,
boolean internal,
int partId,
boolean primary,
boolean preload,
long updateCntr,
@Nullable GridDhtAtomicAbstractUpdateFuture fut,
AffinityTopologyVersion topVer) |
protected void |
onKernalStart0() |
protected void |
onKernalStop0(boolean cancel) |
void |
onPartitionEvicted(int part)
Partition evicted callback.
|
@Nullable CounterSkipContext |
skipUpdateCounter(@Nullable CounterSkipContext skipCtx,
int part,
long cntr,
AffinityTopologyVersion topVer,
boolean primary) |
protected void |
start0() |
protected void |
stop0(boolean cancel,
boolean destroy) |
@Nullable Map<UUID,CacheContinuousQueryListener> |
updateListeners(boolean internal,
boolean preload) |
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStop, printMemoryStats, start, startInfo, stop, stopInfo, toStringprotected void stop0(boolean cancel,
boolean destroy)
stop0 in class GridCacheManagerAdapter<K,V>cancel - Cancel flag.destroy - Cache destroy flag.protected GridTimeoutProcessor.CancelableTask getCancelableTask()
protected void start0()
throws IgniteCheckedException
start0 in class GridCacheManagerAdapter<K,V>IgniteCheckedException - If failed.protected void onKernalStart0()
throws IgniteCheckedException
onKernalStart0 in class GridCacheManagerAdapter<K,V>IgniteCheckedException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheManagerAdapter<K,V>cancel - Cancel flag.public boolean notifyContinuousQueries(@Nullable
@Nullable IgniteInternalTx tx)
tx - Transaction.True if should notify continuous query manager.@Nullable public @Nullable CounterSkipContext skipUpdateCounter(@Nullable @Nullable CounterSkipContext skipCtx, int part, long cntr, AffinityTopologyVersion topVer, boolean primary)
skipCtx - Context.part - Partition number.cntr - Update counter.topVer - Topology version.@Nullable public void closeBackupUpdateCountersGaps(GridCacheContext cctx, int part, AffinityTopologyVersion topVer, GridLongList gaps)
cctx - Cache context.part - Partition.topVer - Topology version.gaps - Even-length array of pairs [start, end] for each gap.@Nullable public @Nullable Map<UUID,CacheContinuousQueryListener> updateListeners(boolean internal, boolean preload)
internal - Internal entry flag (internal key or not user cache).preload - Whether update happened during preloading.public void onEntryUpdated(KeyCacheObject key, CacheObject newVal, CacheObject oldVal, boolean internal, int partId, boolean primary, boolean preload, long updateCntr, @Nullable @Nullable GridDhtAtomicAbstractUpdateFuture fut, AffinityTopologyVersion topVer) throws IgniteCheckedException
key - Key.newVal - New value.oldVal - Old value.internal - Internal entry (internal key or not user cache).partId - Partition.primary - True if called on primary node.preload - Whether update happened during preloading.updateCntr - Update counter.fut - Dht atomic future.topVer - Topology version.IgniteCheckedException - In case of error.public void onEntryUpdated(Map<UUID,CacheContinuousQueryListener> lsnrCol, KeyCacheObject key, CacheObject newVal, CacheObject oldVal, boolean internal, int partId, boolean primary, boolean preload, long updateCntr, @Nullable @Nullable GridDhtAtomicAbstractUpdateFuture fut, AffinityTopologyVersion topVer) throws IgniteCheckedException
lsnrCol - Listeners to notify.key - Key.newVal - New value.oldVal - Old value.internal - Internal entry (internal key or not user cache),partId - Partition.primary - True if called on primary node.preload - Whether update happened during preloading.updateCntr - Update counter.topVer - Topology version.fut - Dht atomic future.IgniteCheckedException - In case of error.public void onEntryExpired(GridCacheEntryEx e, KeyCacheObject key, CacheObject oldVal) throws IgniteCheckedException
e - Entry.key - Key.oldVal - Old value.IgniteCheckedException - In case of error.public UUID executeQuery(@Nullable @Nullable javax.cache.event.CacheEntryUpdatedListener locLsnr, @Nullable @Nullable ContinuousQueryWithTransformer.EventListener locTransLsnr, @Nullable @Nullable CacheEntryEventSerializableFilter<K,V> rmtFilter, @Nullable @Nullable javax.cache.configuration.Factory<javax.cache.event.CacheEntryEventFilter<K,V>> rmtFilterFactory, @Nullable @Nullable javax.cache.configuration.Factory<IgniteClosure<K,V>> rmtTransFactory, int bufSize, long timeInterval, boolean autoUnsubscribe, boolean loc, boolean keepBinary, boolean includeExpired) throws IgniteCheckedException
locLsnr - Local listener.rmtFilter - Remote filter.rmtFilterFactory - Remote filter factorybufSize - Buffer size.timeInterval - Time interval.autoUnsubscribe - Auto unsubscribe flag.loc - Local flag.IgniteCheckedException - In case of error.public UUID executeInternalQuery(javax.cache.event.CacheEntryUpdatedListener<?,?> locLsnr, CacheEntryEventSerializableFilter rmtFilter, boolean loc, boolean notifyExisting, boolean ignoreClassNotFound, boolean sync) throws IgniteCheckedException
locLsnr - Local listener.rmtFilter - Remote filter.loc - Local flag.notifyExisting - Notify existing flag.sync - Synchronous flag.IgniteCheckedException - In case of error.public void cancelInternalQuery(UUID routineId)
routineId - Consume ID.public void executeJCacheQuery(javax.cache.configuration.CacheEntryListenerConfiguration cfg,
boolean onStart,
boolean keepBinary)
throws IgniteCheckedException
cfg - Listener configuration.onStart - Whether listener is created on node start.IgniteCheckedException - If failed.public void cancelJCacheQuery(javax.cache.configuration.CacheEntryListenerConfiguration cfg)
throws IgniteCheckedException
cfg - Listener configuration.IgniteCheckedException - In case of error.public void flushBackupQueue(AffinityTopologyVersion topVer)
topVer - Finished exchange topology version.public void onPartitionEvicted(int part)
part - Partition number.public Iterable<javax.cache.event.CacheEntryEvent<?,?>> existingEntries(boolean keepBinary, javax.cache.event.CacheEntryEventFilter filter) throws IgniteCheckedException
keepBinary - Keep binary flag.filter - Filter.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020