public class XSiteStateConsumerImpl extends Object implements XSiteStateConsumer
Constructor and Description |
---|
XSiteStateConsumerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
applyState(XSiteState[] chunk)
It applies state from other site.
|
void |
endStateTransfer(String sendingSite)
It notifies the end of state transfer from other site.
|
String |
getSendingSiteName() |
void |
startStateTransfer(String sendingSite)
It notifies the start of state transfer from other site.
|
public void startStateTransfer(String sendingSite)
XSiteStateConsumer
startStateTransfer
in interface XSiteStateConsumer
sendingSite
- the site name that will send the state.public void endStateTransfer(String sendingSite)
XSiteStateConsumer
endStateTransfer
in interface XSiteStateConsumer
sendingSite
- the site name that is sending the state.public void applyState(XSiteState[] chunk) throws Exception
XSiteStateConsumer
applyState
in interface XSiteStateConsumer
chunk
- a chunk of keysException
- if something go wrong while applying the statepublic String getSendingSiteName()
getSendingSiteName
in interface XSiteStateConsumer
Copyright © 2021 JBoss by Red Hat. All rights reserved.