Package org.infinispan.statetransfer
Class StateTransferLockImpl
java.lang.Object
org.infinispan.statetransfer.StateTransferLockImpl
- All Implemented Interfaces:
StateTransferLock
StateTransferLock implementation.- Since:
- 5.2
- Author:
- anistor@redhat.com, Dan Berindei
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidnotifyTopologyInstalled(int topologyId) voidnotifyTransactionDataReceived(int topologyId) voidvoidtopologyFuture(int expectedTopologyId) booleantopologyReceived(int expectedTopologyId) transactionDataFuture(int expectedTopologyId) booleantransactionDataReceived(int expectedTopologyId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.statetransfer.StateTransferLock
waitForTopology
-
Constructor Details
-
StateTransferLockImpl
public StateTransferLockImpl()
-
-
Method Details
-
acquireExclusiveTopologyLock
public void acquireExclusiveTopologyLock()- Specified by:
acquireExclusiveTopologyLockin interfaceStateTransferLock
-
releaseExclusiveTopologyLock
public void releaseExclusiveTopologyLock()- Specified by:
releaseExclusiveTopologyLockin interfaceStateTransferLock
-
notifyTransactionDataReceived
public void notifyTransactionDataReceived(int topologyId) - Specified by:
notifyTransactionDataReceivedin interfaceStateTransferLock
-
transactionDataFuture
- Specified by:
transactionDataFuturein interfaceStateTransferLock- Returns:
- a stage that completes successfully when topology
expectedTopologyIdhas been installed and transaction data has been received, or with aTimeoutExceptionafterClusteringConfiguration.remoteTimeout()expires.
-
transactionDataReceived
public boolean transactionDataReceived(int expectedTopologyId) - Specified by:
transactionDataReceivedin interfaceStateTransferLock
-
notifyTopologyInstalled
public void notifyTopologyInstalled(int topologyId) - Specified by:
notifyTopologyInstalledin interfaceStateTransferLock
-
topologyFuture
- Specified by:
topologyFuturein interfaceStateTransferLock- Returns:
- a stage that completes successfully when topology
expectedTopologyIdhas been installed, or with aTimeoutExceptionafterStateTransferConfiguration.timeout()expires.
-
topologyReceived
public boolean topologyReceived(int expectedTopologyId) - Specified by:
topologyReceivedin interfaceStateTransferLock
-