public interface StateConsumer
Modifier and Type | Method and Description |
---|---|
CompletionStage<?> |
applyState(Address sender,
int topologyId,
boolean pushTransfer,
Collection<StateChunk> stateChunks) |
boolean |
isStateTransferInProgress() |
boolean |
isStateTransferInProgressForKey(Object key) |
CompletionStage<CompletionStage<Void>> |
onTopologyUpdate(CacheTopology cacheTopology,
boolean isRebalance)
Receive notification of topology changes.
|
boolean |
ownsData() |
void |
stop()
Cancels all incoming state transfers.
|
void |
stopApplyingState(int topologyId)
Stops applying incoming state.
|
boolean isStateTransferInProgress()
boolean isStateTransferInProgressForKey(Object key)
CompletionStage<CompletionStage<Void>> onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance)
StateTransferStartCommand
,
or ScatteredStateGetKeysCommand
for
CacheMode.SCATTERED_SYNC
, are issued for segments that are new to this
member and the segments that are no longer owned are discarded.CompletionStage<?> applyState(Address sender, int topologyId, boolean pushTransfer, Collection<StateChunk> stateChunks)
void stop()
void stopApplyingState(int topologyId)
topologyId
- Topology id at the end of state transferboolean ownsData()
Copyright © 2021 JBoss by Red Hat. All rights reserved.