public class CacheConsistencyViolationEvent<K,V> extends EventAdapter
Event indicates a consistency violation.
Grid events are used for notification about what happens within the grid. Note that by design Ignite keeps all events generated on the local node locally and it provides APIs for performing a distributed queries across multiple nodes:
IgniteEvents.remoteQuery(org.apache.ignite.lang.IgnitePredicate, long, int...)
-
asynchronously querying events occurred on the nodes specified, including remote nodes.
IgniteEvents.localQuery(org.apache.ignite.lang.IgnitePredicate, int...)
-
querying only local events stored on this local node.
IgniteEvents.localListen(org.apache.ignite.lang.IgnitePredicate, int...)
-
listening to local grid events (events from remote nodes not included).
IgniteEvents.waitForLocal(org.apache.ignite.lang.IgnitePredicate, int...)
.
It is highly recommended to enable only those events that your application logic requires
by using IgniteConfiguration.getIncludeEventTypes()
method in Ignite configuration.
Note that certain events are required for Ignite's internal operations and such events will still be generated but not stored by
event storage SPI if they are disabled in Ignite configuration.
Constructor and Description |
---|
CacheConsistencyViolationEvent(ClusterNode node,
String msg,
Map<UUID,Map<K,V>> originalEntries,
Map<K,V> repairedEntries)
Creates a new instance of CacheConsistencyViolationEvent.
|
Modifier and Type | Method and Description |
---|---|
Map<UUID,Map<K,V>> |
getEntries()
Returns a mapping node ids to a collection of original entries affected by a cache operation.
|
Map<K,V> |
getRepairedEntries()
Returns a collection of repaired entries.
|
public CacheConsistencyViolationEvent(ClusterNode node, String msg, Map<UUID,Map<K,V>> originalEntries, Map<K,V> repairedEntries)
node
- Local node.msg
- Event message.originalEntries
- Collection of original entries affected by a cache operation.repairedEntries
- Collection of repaired entries.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021