Class 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 Detail

      • stateChanged

        public void stateChanged​(com.hazelcast.core.LifecycleEvent event)
        Specified by:
        stateChanged in interface com.hazelcast.core.LifecycleListener