Package org.infinispan.conflict.impl
Class StateReceiverImpl<K,V>
- java.lang.Object
-
- org.infinispan.conflict.impl.StateReceiverImpl<K,V>
-
- All Implemented Interfaces:
StateReceiver<K,V>
public class StateReceiverImpl<K,V> extends Object implements StateReceiver<K,V>
- Since:
- 9.1
- Author:
- Ryan Emerson
-
-
Constructor Summary
Constructors Constructor Description StateReceiverImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelRequests()
Cancels all ongoing replica requests.CompletableFuture<List<Map<Address,CacheEntry<K,V>>>>
getAllReplicasForSegment(int segmentId, LocalizedCacheTopology topology, long timeout)
Return all replicas of a cache entry for a given segment.void
onDataRehash(DataRehashedEvent dataRehashedEvent)
void
receiveState(Address sender, int topologyId, Collection<StateChunk> stateChunks)
void
start()
void
stop()
-
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
cancelRequests
public void cancelRequests()
Description copied from interface:StateReceiver
Cancels all ongoing replica requests.- Specified by:
cancelRequests
in interfaceStateReceiver<K,V>
-
onDataRehash
public void onDataRehash(DataRehashedEvent dataRehashedEvent)
-
getAllReplicasForSegment
public CompletableFuture<List<Map<Address,CacheEntry<K,V>>>> getAllReplicasForSegment(int segmentId, LocalizedCacheTopology topology, long timeout)
Description copied from interface:StateReceiver
Return all replicas of a cache entry for a given segment. We require the ConsitentHash to be passed here, as it is necessary for the hash of the last stable topology to be utilised during an automatic merge, before a new merged topology is installed.- Specified by:
getAllReplicasForSegment
in interfaceStateReceiver<K,V>
-
receiveState
public void receiveState(Address sender, int topologyId, Collection<StateChunk> stateChunks)
- Specified by:
receiveState
in interfaceStateReceiver<K,V>
-
-