Class GridDhtTopologyFutureAdapter

    • Constructor Detail

      • GridDhtTopologyFutureAdapter

        public GridDhtTopologyFutureAdapter()
    • Method Detail

      • validateCache

        @Nullable
        public final @Nullable CacheInvalidStateException validateCache​(GridCacheContext cctx,
                                                                        boolean recovery,
                                                                        boolean read,
                                                                        @Nullable
                                                                        @Nullable Object key,
                                                                        @Nullable
                                                                        @Nullable Collection<?> keys)
        Returns error is cache topology is not valid.
        Specified by:
        validateCache in interface GridDhtTopologyFuture
        Parameters:
        cctx - Cache context.
        recovery - True if cache operation is done in recovery mode. Then it will only check for cache active state and topology validator result.
        read - True if validating read operation, false if validating write.
        key - Key (optimization to avoid collection creation).
        keys - Keys involved in a cache operation.
        Returns:
        Not null exception if a cache is in invalid state.
      • hasLostPartitions

        public boolean hasLostPartitions()
        Returns:
        true If any lost partitions was detected.