Class XSiteStateConsumerImpl
java.lang.Object
org.infinispan.xsite.statetransfer.XSiteStateConsumerImpl
- All Implemented Interfaces:
XSiteStateConsumer
It contains the logic needed to consume the state sent from other site.
- Since:
- 7.0
- Author:
- Pedro Ruivo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyState(XSiteState[] chunk) It applies state from other site.voidendStateTransfer(String sendingSite) It notifies the end of state transfer from other site.voidstartStateTransfer(String sendingSite) It notifies the start of state transfer from other site.
-
Constructor Details
-
XSiteStateConsumerImpl
-
-
Method Details
-
startStateTransfer
Description copied from interface:XSiteStateConsumerIt notifies the start of state transfer from other site.- Specified by:
startStateTransferin interfaceXSiteStateConsumer- Parameters:
sendingSite- the site name that will send the state.
-
endStateTransfer
Description copied from interface:XSiteStateConsumerIt notifies the end of state transfer from other site.- Specified by:
endStateTransferin interfaceXSiteStateConsumer- Parameters:
sendingSite- the site name that is sending the state.
-
applyState
Description copied from interface:XSiteStateConsumerIt applies state from other site.- Specified by:
applyStatein interfaceXSiteStateConsumer- Parameters:
chunk- a chunk of keys- Throws:
Exception- if something go wrong while applying the state
-
getSendingSiteName
- Specified by:
getSendingSiteNamein interfaceXSiteStateConsumer- Returns:
- the site name that is sending the state.
-