Package org.infinispan.statetransfer
Class StateTransferLockImpl
- java.lang.Object
-
- org.infinispan.statetransfer.StateTransferLockImpl
-
- All Implemented Interfaces:
StateTransferLock
public class StateTransferLockImpl extends java.lang.Object implements StateTransferLock
StateTransferLockimplementation.- Since:
- 5.2
- Author:
- anistor@redhat.com, Dan Berindei
-
-
Constructor Summary
Constructors Constructor Description StateTransferLockImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquireExclusiveTopologyLock()voidacquireSharedTopologyLock()voidnotifyTopologyInstalled(int topologyId)voidnotifyTransactionDataReceived(int topologyId)voidreleaseExclusiveTopologyLock()voidreleaseSharedTopologyLock()voidstop()java.util.concurrent.CompletableFuture<java.lang.Void>topologyFuture(int expectedTopologyId)booleantopologyReceived(int expectedTopologyId)java.util.concurrent.CompletableFuture<java.lang.Void>transactionDataFuture(int expectedTopologyId)booleantransactionDataReceived(int expectedTopologyId)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.statetransfer.StateTransferLock
waitForTopology
-
-
-
-
Method Detail
-
stop
public void stop()
-
acquireExclusiveTopologyLock
public void acquireExclusiveTopologyLock()
- Specified by:
acquireExclusiveTopologyLockin interfaceStateTransferLock
-
releaseExclusiveTopologyLock
public void releaseExclusiveTopologyLock()
- Specified by:
releaseExclusiveTopologyLockin interfaceStateTransferLock
-
acquireSharedTopologyLock
public void acquireSharedTopologyLock()
- Specified by:
acquireSharedTopologyLockin interfaceStateTransferLock
-
releaseSharedTopologyLock
public void releaseSharedTopologyLock()
- Specified by:
releaseSharedTopologyLockin interfaceStateTransferLock
-
notifyTransactionDataReceived
public void notifyTransactionDataReceived(int topologyId)
- Specified by:
notifyTransactionDataReceivedin interfaceStateTransferLock
-
transactionDataFuture
public java.util.concurrent.CompletableFuture<java.lang.Void> transactionDataFuture(int expectedTopologyId)
- Specified by:
transactionDataFuturein interfaceStateTransferLock
-
transactionDataReceived
public boolean transactionDataReceived(int expectedTopologyId)
- Specified by:
transactionDataReceivedin interfaceStateTransferLock
-
notifyTopologyInstalled
public void notifyTopologyInstalled(int topologyId)
- Specified by:
notifyTopologyInstalledin interfaceStateTransferLock
-
topologyFuture
public java.util.concurrent.CompletableFuture<java.lang.Void> topologyFuture(int expectedTopologyId)
- Specified by:
topologyFuturein interfaceStateTransferLock
-
topologyReceived
public boolean topologyReceived(int expectedTopologyId)
- Specified by:
topologyReceivedin interfaceStateTransferLock
-
-