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
-
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.
-
Constructor Details
-
XSiteStateConsumerImpl
-
-
Method Details
-
startStateTransfer
Description copied from interface:XSiteStateConsumer
It notifies the start of state transfer from other site.- Specified by:
startStateTransfer
in interfaceXSiteStateConsumer
- Parameters:
sendingSite
- the site name that will send the state.
-
endStateTransfer
Description copied from interface:XSiteStateConsumer
It notifies the end of state transfer from other site.- Specified by:
endStateTransfer
in interfaceXSiteStateConsumer
- Parameters:
sendingSite
- the site name that is sending the state.
-
applyState
Description copied from interface:XSiteStateConsumer
It applies state from other site.- Specified by:
applyState
in interfaceXSiteStateConsumer
- Parameters:
chunk
- a chunk of keys- Throws:
Exception
- if something go wrong while applying the state
-
getSendingSiteName
- Specified by:
getSendingSiteName
in interfaceXSiteStateConsumer
- Returns:
- the site name that is sending the state.
-