Class ClientCacheChangeDiscoveryMessage

    • Constructor Detail

      • ClientCacheChangeDiscoveryMessage

        public ClientCacheChangeDiscoveryMessage​(Map<Integer,​Boolean> startedCaches,
                                                 Set<Integer> closedCaches)
        Parameters:
        startedCaches - Started caches.
        closedCaches - Closed caches.
    • Method Detail

      • merge

        public void merge​(@Nullable
                          @Nullable Map<Integer,​Boolean> startedCaches,
                          @Nullable
                          @Nullable Set<Integer> closedCaches)
        Parameters:
        startedCaches - Started caches.
        closedCaches - Closed caches.
      • empty

        public boolean empty()
        Returns:
        True if there are no info about started/closed caches.
      • updateTimeoutObject

        public org.apache.ignite.internal.processors.cache.ClientCacheUpdateTimeout updateTimeoutObject()
        Returns:
        Update timeout object.
      • updateTimeoutObject

        public void updateTimeoutObject​(org.apache.ignite.internal.processors.cache.ClientCacheUpdateTimeout updateTimeoutObj)
        Parameters:
        updateTimeoutObj - Update timeout object.
      • startedCaches

        @Nullable
        public @Nullable Map<Integer,​Boolean> startedCaches()
        Returns:
        Started caches map (cache ID to near enabled flag).
      • closedCaches

        @Nullable
        public @Nullable Set<Integer> closedCaches()
        Returns:
        Closed caches.
      • isMutable

        public boolean isMutable()
        Specified by:
        isMutable in interface DiscoveryCustomMessage
        Returns:
        True if message can be modified during listener notification. Changes will be sent to next nodes.