public interface CacheNotifier<K,V> extends DataConversionAwareListenable<K,V>, ClassLoaderAwareListenable
Modifier and Type | Method and Description |
---|---|
boolean |
hasListener(Class<? extends Annotation> annotationClass)
Returns whether there is at least one listener regitstered for the given annotation
|
CompletionStage<Void> |
notifyCacheEntriesEvicted(Collection<Map.Entry<K,V>> entries,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntriesEvictedEvent
event. |
CompletionStage<Void> |
notifyCacheEntryActivated(K key,
V value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryActivatedEvent
event. |
CompletionStage<Void> |
notifyCacheEntryCreated(K key,
V value,
Metadata metadata,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryCreatedEvent
event. |
CompletionStage<Void> |
notifyCacheEntryExpired(K key,
V value,
Metadata metadata,
InvocationContext ctx)
Notifies all registered listeners of a CacheEntryExpired event.
|
CompletionStage<Void> |
notifyCacheEntryInvalidated(K key,
V value,
Metadata metadata,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryInvalidatedEvent
event. |
CompletionStage<Void> |
notifyCacheEntryLoaded(K key,
V value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryLoadedEvent
event. |
CompletionStage<Void> |
notifyCacheEntryModified(K key,
V value,
Metadata metadata,
V previousValue,
Metadata previousMetadata,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryModifiedEvent
event. |
CompletionStage<Void> |
notifyCacheEntryPassivated(K key,
V value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryPassivatedEvent
event. |
CompletionStage<Void> |
notifyCacheEntryRemoved(K key,
V previousValue,
Metadata previousMetadata,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryRemovedEvent
event. |
CompletionStage<Void> |
notifyCacheEntryVisited(K key,
V value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand command)
Notifies all registered listeners of a
CacheEntryVisitedEvent
event. |
CompletionStage<Void> |
notifyDataRehashed(ConsistentHash oldCH,
ConsistentHash newCH,
ConsistentHash unionCH,
int newTopologyId,
boolean pre) |
CompletionStage<Void> |
notifyPartitionStatusChanged(AvailabilityMode mode,
boolean pre) |
CompletionStage<Void> |
notifyPersistenceAvailabilityChanged(boolean available) |
CompletionStage<Void> |
notifyTopologyChanged(CacheTopology oldTopology,
CacheTopology newTopology,
int newTopologyId,
boolean pre) |
CompletionStage<Void> |
notifyTransactionCompleted(GlobalTransaction transaction,
boolean successful,
InvocationContext ctx)
Notifies all registered listeners of a transaction completion event.
|
CompletionStage<Void> |
notifyTransactionRegistered(GlobalTransaction globalTransaction,
boolean isOriginLocal)
Notifies all registered listeners of a transaction registration event.
|
addFilteredListener, addFilteredListenerAsync, addListener, addListenerAsync
addListener, addListenerAsync
addFilteredListener, addFilteredListenerAsync, addListener, addListenerAsync, addStorageFormatFilteredListener, addStorageFormatFilteredListenerAsync
addListener, addListenerAsync, getListeners, removeListener, removeListenerAsync
addListener, addListenerAsync
CompletionStage<Void> notifyCacheEntryCreated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryCreatedEvent
event.CompletionStage<Void> notifyCacheEntryModified(K key, V value, Metadata metadata, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryModifiedEvent
event.CompletionStage<Void> notifyCacheEntryRemoved(K key, V previousValue, Metadata previousMetadata, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryRemovedEvent
event.CompletionStage<Void> notifyCacheEntryVisited(K key, V value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryVisitedEvent
event.CompletionStage<Void> notifyCacheEntriesEvicted(Collection<Map.Entry<K,V>> entries, InvocationContext ctx, FlagAffectedCommand command)
CacheEntriesEvictedEvent
event.CompletionStage<Void> notifyCacheEntryExpired(K key, V value, Metadata metadata, InvocationContext ctx)
CompletionStage<Void> notifyCacheEntryInvalidated(K key, V value, Metadata metadata, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryInvalidatedEvent
event.CompletionStage<Void> notifyCacheEntryLoaded(K key, V value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryLoadedEvent
event.CompletionStage<Void> notifyCacheEntryActivated(K key, V value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryActivatedEvent
event.CompletionStage<Void> notifyCacheEntryPassivated(K key, V value, boolean pre, InvocationContext ctx, FlagAffectedCommand command)
CacheEntryPassivatedEvent
event.CompletionStage<Void> notifyTransactionCompleted(GlobalTransaction transaction, boolean successful, InvocationContext ctx)
transaction
- the transaction that has just completedsuccessful
- if true, the transaction committed. If false, this is a rollback eventCompletionStage<Void> notifyTransactionRegistered(GlobalTransaction globalTransaction, boolean isOriginLocal)
globalTransaction
- CompletionStage<Void> notifyDataRehashed(ConsistentHash oldCH, ConsistentHash newCH, ConsistentHash unionCH, int newTopologyId, boolean pre)
CompletionStage<Void> notifyTopologyChanged(CacheTopology oldTopology, CacheTopology newTopology, int newTopologyId, boolean pre)
CompletionStage<Void> notifyPartitionStatusChanged(AvailabilityMode mode, boolean pre)
CompletionStage<Void> notifyPersistenceAvailabilityChanged(boolean available)
boolean hasListener(Class<? extends Annotation> annotationClass)
annotationClass
- annotation to test forCopyright © 2021 JBoss by Red Hat. All rights reserved.