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 |
inject(TransactionManager transactionManager,
InvocationContextFactory invocationContextFactory,
CommandsFactory commandsFactory,
InterceptorChain interceptorChain,
CommitManager commitManager) |
void |
startStateTransfer(String sendingSite)
It notifies the start of state transfer from other site.
|
public void inject(TransactionManager transactionManager, InvocationContextFactory invocationContextFactory, CommandsFactory commandsFactory, InterceptorChain interceptorChain, CommitManager commitManager)
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, a division of Red Hat. All rights reserved.