Interface XSiteStateConsumer
- All Known Implementing Classes:
XSiteStateConsumerImpl
public interface XSiteStateConsumer
It contains the logic needed to consume the state sent from other site.
- Since:
- 7.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyState
(XSiteState[] chunk) It applies state from other site.void
endStateTransfer
(String sendingSite) It notifies the end of state transfer from other site.void
startStateTransfer
(String sendingSite) It notifies the start of state transfer from other site.
-
Method Details
-
startStateTransfer
It notifies the start of state transfer from other site.- Parameters:
sendingSite
- the site name that will send the state.- Throws:
CacheException
- if this node is received state from a different site name.
-
endStateTransfer
It notifies the end of state transfer from other site.- Parameters:
sendingSite
- the site name that is sending the state.
-
applyState
It applies state from other site.- Parameters:
chunk
- a chunk of keys- Throws:
Exception
- if something go wrong while applying the state
-
getSendingSiteName
String getSendingSiteName()- Returns:
- the site name that is sending the state.
-