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>
- Since:
- 9.1
- Author:
- Ryan Emerson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCancels all ongoing replica requests.getAllReplicasForSegment(int segmentId, LocalizedCacheTopology topology, long timeout) Return all replicas of a cache entry for a given segment.voidonDataRehash(DataRehashedEvent<K, V> dataRehashedEvent) voidreceiveState(Address sender, int topologyId, Collection<StateChunk> stateChunks) voidstart()voidstop()
-
Constructor Details
-
StateReceiverImpl
public StateReceiverImpl()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
cancelRequests
public void cancelRequests()Description copied from interface:StateReceiverCancels all ongoing replica requests.- Specified by:
cancelRequestsin interfaceStateReceiver<K,V>
-
onDataRehash
-
getAllReplicasForSegment
public CompletableFuture<List<Map<Address,CacheEntry<K, getAllReplicasForSegmentV>>>> (int segmentId, LocalizedCacheTopology topology, long timeout) Description copied from interface:StateReceiverReturn 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:
getAllReplicasForSegmentin interfaceStateReceiver<K,V>
-
receiveState
- Specified by:
receiveStatein interfaceStateReceiver<K,V>
-