public class CacheContinuousQueryManager extends GridCacheManagerAdapter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CacheContinuousQueryManager.JCacheQueryRemoteFilter
For handler version 2.0 this filter should not be serialized.
|
cctx, log| Constructor and Description |
|---|
CacheContinuousQueryManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeExchange(AffinityTopologyVersion topVer) |
void |
cancelInternalQuery(UUID routineId) |
void |
cancelJCacheQuery(javax.cache.configuration.CacheEntryListenerConfiguration cfg) |
UUID |
executeInternalQuery(javax.cache.event.CacheEntryUpdatedListener<?,?> locLsnr,
CacheEntryEventSerializableFilter rmtFilter,
boolean loc,
boolean notifyExisting,
boolean ignoreClassNotFound) |
void |
executeJCacheQuery(javax.cache.configuration.CacheEntryListenerConfiguration cfg,
boolean onStart,
boolean keepBinary) |
UUID |
executeQuery(javax.cache.event.CacheEntryUpdatedListener locLsnr,
CacheEntryEventSerializableFilter rmtFilter,
javax.cache.configuration.Factory<? extends javax.cache.event.CacheEntryEventFilter> rmtFilterFactory,
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 |
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,
GridDhtAtomicUpdateFuture 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,
GridDhtAtomicUpdateFuture fut,
AffinityTopologyVersion topVer) |
protected void |
onKernalStart0() |
protected void |
onKernalStop0(boolean cancel) |
void |
onPartitionEvicted(int part)
Partition evicted callback.
|
void |
skipUpdateEvent(Map<UUID,CacheContinuousQueryListener> lsnrs,
KeyCacheObject key,
int partId,
long updCntr,
boolean primary,
AffinityTopologyVersion topVer) |
protected void |
start0() |
Map<UUID,CacheContinuousQueryListener> |
updateListeners(boolean internal,
boolean preload) |
context, kernalStartInfo, kernalStopInfo, log, onDisconnected, onKernalStart, onKernalStop, printMemoryStats, start, startInfo, stop, stop0, stopInfo, toStringprotected void start0()
throws IgniteCheckedException
start0 in class GridCacheManagerAdapterIgniteCheckedException - If failed.protected void onKernalStart0()
throws IgniteCheckedException
onKernalStart0 in class GridCacheManagerAdapterIgniteCheckedException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheManagerAdaptercancel - Cancel flag.public void skipUpdateEvent(Map<UUID,CacheContinuousQueryListener> lsnrs, KeyCacheObject key, int partId, long updCntr, boolean primary, AffinityTopologyVersion topVer)
lsnrs - Listeners to notify.key - Entry key.partId - Partition id.updCntr - Updated counter.primary - Primary.topVer - Topology version.@Nullable public 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 GridDhtAtomicUpdateFuture 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 GridDhtAtomicUpdateFuture 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(javax.cache.event.CacheEntryUpdatedListener locLsnr, @Nullable CacheEntryEventSerializableFilter rmtFilter, @Nullable javax.cache.configuration.Factory<? extends javax.cache.event.CacheEntryEventFilter> rmtFilterFactory, int bufSize, long timeInterval, boolean autoUnsubscribe, boolean loc, boolean keepBinary, boolean includeExpired) throws IgniteCheckedException
locLsnr - Local listener.rmtFilter - Remote filter.bufSize - 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) throws IgniteCheckedException
locLsnr - Local listener.rmtFilter - Remote filter.loc - Local flag.notifyExisting - Notify existing 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 beforeExchange(AffinityTopologyVersion topVer)
topVer - 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 Fabric : ver. 1.7.0 Release Date : August 1 2016