public class CacheConsistencyViolationEvent 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.
Modifier and Type | Class and Description |
---|---|
static interface |
CacheConsistencyViolationEvent.EntriesInfo
Inconsistent entries mapping.
|
static interface |
CacheConsistencyViolationEvent.EntryInfo
Inconsistent entry info.
|
Constructor and Description |
---|
CacheConsistencyViolationEvent(String cacheName,
ClusterNode node,
String msg,
Map<Object,CacheConsistencyViolationEvent.EntriesInfo> entries,
Map<Object,Object> repaired,
ReadRepairStrategy strategy)
Creates a new instance of CacheConsistencyViolationEvent.
|
Modifier and Type | Method and Description |
---|---|
String |
getCacheName()
Returns cache name.
|
Map<Object,CacheConsistencyViolationEvent.EntriesInfo> |
getEntries()
Returns a mapping of keys to a collection of original entries.
|
Map<Object,Object> |
getRepairedEntries()
Returns a mapping of keys to a collection of repaired entries.
|
ReadRepairStrategy |
getStrategy()
Returns strategy.
|
public CacheConsistencyViolationEvent(String cacheName, ClusterNode node, String msg, Map<Object,CacheConsistencyViolationEvent.EntriesInfo> entries, Map<Object,Object> repaired, ReadRepairStrategy strategy)
cacheName
- Cache name.node
- Local node.msg
- Event message.entries
- Collection of original entries.repaired
- Collection of repaired entries.strategy
- Strategy.public Map<Object,CacheConsistencyViolationEvent.EntriesInfo> getEntries()
public Map<Object,Object> getRepairedEntries()
public String getCacheName()
public ReadRepairStrategy getStrategy()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023