Package org.infinispan.scattered.impl
Class ScatteredStateConsumerImpl
java.lang.Object
org.infinispan.statetransfer.StateConsumerImpl
org.infinispan.scattered.impl.ScatteredStateConsumerImpl
- All Implemented Interfaces:
org.infinispan.statetransfer.StateConsumer
public class ScatteredStateConsumerImpl
extends org.infinispan.statetransfer.StateConsumerImpl
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected Collection
<Address> protected BlockingQueue
<InternalCacheEntry<?, ?>> protected AtomicLong
protected InternalEntryFactory
protected IntSet
protected final ConcurrentMap
<Address, BlockingQueue<ScatteredStateConsumerImpl.KeyAndVersion>> protected Collection
<Address> protected final ConcurrentMap
<Address, BlockingQueue<Object>> protected static final long
protected ScatteredVersionManager
<?> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
beforeTopologyInstalled
(int topologyId, ConsistentHash previousWriteCh, ConsistentHash newWriteCh) protected CompletionStage
<Void> handleSegments
(boolean isRebalance, IntSet addedSegments, IntSet transactionOnlySegments) protected void
onCompletedSegment
(int segmentId, org.infinispan.statetransfer.InboundTransferTask inboundTransfer) protected void
onTaskCompletion
(org.infinispan.statetransfer.InboundTransferTask inboundTransfer) onTopologyUpdate
(CacheTopology cacheTopology, boolean isRebalance) protected CompletionStage
<Void> removeStaleData
(IntSet removedSegments) void
start()
void
stopApplyingState
(int topologyId)
-
Field Details
-
SKIP_OWNERSHIP_FLAGS
protected static final long SKIP_OWNERSHIP_FLAGS -
entryFactory
-
svm
-
inboundSegments
-
chunkCounter
-
retrievedEntries
-
backupQueue
-
invalidations
protected final ConcurrentMap<Address,BlockingQueue<ScatteredStateConsumerImpl.KeyAndVersion>> invalidations -
backupAddress
-
nonBackupAddresses
-
-
Constructor Details
-
ScatteredStateConsumerImpl
public ScatteredStateConsumerImpl()
-
-
Method Details
-
start
public void start() -
onTopologyUpdate
public CompletionStage<CompletionStage<Void>> onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance) -
beforeTopologyInstalled
protected void beforeTopologyInstalled(int topologyId, ConsistentHash previousWriteCh, ConsistentHash newWriteCh) -
handleSegments
protected CompletionStage<Void> handleSegments(boolean isRebalance, IntSet addedSegments, IntSet transactionOnlySegments) -
onTaskCompletion
protected void onTaskCompletion(org.infinispan.statetransfer.InboundTransferTask inboundTransfer) -
onCompletedSegment
protected void onCompletedSegment(int segmentId, org.infinispan.statetransfer.InboundTransferTask inboundTransfer) -
stopApplyingState
public void stopApplyingState(int topologyId) -
removeStaleData
-