|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateConsumer
Handles inbound state transfers.
Method Summary | |
---|---|
void |
addUpdatedKey(Object key)
Receive notification of updated keys right before they are committed in DataContainer. |
void |
applyState(Address sender,
int topologyId,
Collection<StateChunk> stateChunks)
|
CacheTopology |
getCacheTopology()
|
boolean |
isKeyUpdated(Object key)
Checks if a given key was updated by user code during state transfer (and consequently it is untouchable by state transfer). |
boolean |
isStateTransferInProgress()
|
boolean |
isStateTransferInProgressForKey(Object key)
|
void |
onTopologyUpdate(CacheTopology cacheTopology,
boolean isRebalance)
Receive notification of topology changes. |
void |
stop()
Cancels all incoming state transfers. |
void |
stopApplyingState()
Stops applying incoming state. |
Method Detail |
---|
CacheTopology getCacheTopology()
boolean isStateTransferInProgress()
boolean isStateTransferInProgressForKey(Object key)
void onTopologyUpdate(CacheTopology cacheTopology, boolean isRebalance)
cacheTopology
- isRebalance
- void applyState(Address sender, int topologyId, Collection<StateChunk> stateChunks)
void stop()
void addUpdatedKey(Object key)
key
- the key that is being modifiedboolean isKeyUpdated(Object key)
key
- the key to check
void stopApplyingState()
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |