Class QueryCacheSplitBrainDetector
- java.lang.Object
-
- com.atlassian.confluence.impl.cache.hazelcast.hibernate.QueryCacheSplitBrainDetector
-
- All Implemented Interfaces:
com.hazelcast.core.LifecycleListener,EventListener
public final class QueryCacheSplitBrainDetector extends Object implements com.hazelcast.core.LifecycleListener
Query regions are local. So in case of a split brain, they may ran out of sync. This split brain listener cleans up query caches if some particular node joins the cluster after the split brain.Note that this job should really be done by Hazelcast itself, or by the underlying cache implemenation, based on Hazelcast's own split-brain detection and repair API.
- Since:
- 7.5
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRemoteEvent(ClusterEventWrapper wrapper)voidstateChanged(com.hazelcast.core.LifecycleEvent event)
-
-
-
Method Detail
-
onRemoteEvent
@EventListener public void onRemoteEvent(ClusterEventWrapper wrapper)
-
stateChanged
public void stateChanged(com.hazelcast.core.LifecycleEvent event)
- Specified by:
stateChangedin interfacecom.hazelcast.core.LifecycleListener
-
-