All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.scattered.ScatteredStateProvider Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.scattered;

import java.util.concurrent.CompletionStage;

import org.infinispan.commons.util.IntSet;
import org.infinispan.remoting.transport.Address;
import org.infinispan.statetransfer.StateProvider;

/**
 * @author Radim Vansa <[email protected]>
 */
public interface ScatteredStateProvider extends StateProvider {

   /**
    * Start transferring keys and remote metadata for the given segments to the origin.
    */
   void startKeysTransfer(IntSet segments, Address origin);

   /**
    * Confirm that this node has received cache topology with given topologyId and that it has
    * moved all the segments it does not own according to consistent hash
    * to the {@link ScatteredVersionManager.SegmentState#NOT_OWNED} state.
    */
   CompletionStage confirmRevokedSegments(int topologyId);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy