public interface CacheContinuousQueryListener<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeBackupOnTimeout(GridKernalContext ctx) |
void |
cleanupBackupQueue(Map<Integer,Long> updateCntrs)
Cleans backup queue.
|
void |
flushBackupQueue(GridKernalContext ctx,
AffinityTopologyVersion topVer)
Flushes backup queue.
|
boolean |
isPrimaryOnly() |
boolean |
keepBinary() |
boolean |
notifyExisting() |
boolean |
oldValueRequired() |
void |
onEntryUpdated(org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEvent<K,V> evt,
boolean primary,
boolean recordIgniteEvt,
@Nullable GridDhtAtomicAbstractUpdateFuture fut)
Entry update callback.
|
void |
onPartitionEvicted(int part) |
void |
onRegister()
Listener registration callback.
|
void |
onUnregister()
Listener unregistered callback.
|
@Nullable CounterSkipContext |
skipUpdateCounter(GridCacheContext cctx,
@Nullable CounterSkipContext skipCtx,
int part,
long cntr,
AffinityTopologyVersion topVer,
boolean primary)
For cache updates in shared cache group need notify others caches CQ listeners
that generated counter should be skipped.
|
void |
skipUpdateEvent(org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEvent<K,V> evt,
AffinityTopologyVersion topVer,
boolean primary) |
void onEntryUpdated(org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEvent<K,V> evt, boolean primary, boolean recordIgniteEvt, @Nullable @Nullable GridDhtAtomicAbstractUpdateFuture fut)
evt - Eventprimary - Primary flag.recordIgniteEvt - Whether to record event.fut - Dht atomic future.void onRegister()
CacheGroupContext.listenerLock write lock held.void onUnregister()
void cleanupBackupQueue(Map<Integer,Long> updateCntrs)
updateCntrs - Update indexes map.void flushBackupQueue(GridKernalContext ctx, AffinityTopologyVersion topVer)
ctx - Context.topVer - Topology version.void acknowledgeBackupOnTimeout(GridKernalContext ctx)
ctx - Context.void skipUpdateEvent(org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEvent<K,V> evt, AffinityTopologyVersion topVer, boolean primary)
evt - EventtopVer - Topology version.primary - Primary@Nullable @Nullable CounterSkipContext skipUpdateCounter(GridCacheContext cctx, @Nullable @Nullable CounterSkipContext skipCtx, int part, long cntr, AffinityTopologyVersion topVer, boolean primary)
cctx - Cache context.skipCtx - Context.part - Partition.cntr - Counter to skip.topVer - Topology version.void onPartitionEvicted(int part)
part - Partition.boolean oldValueRequired()
boolean keepBinary()
boolean notifyExisting()
boolean isPrimaryOnly()
True if this listener should be called on events on primary partitions only.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020