Package org.infinispan.statetransfer
Class StateTransferLockImpl
- java.lang.Object
-
- org.infinispan.statetransfer.StateTransferLockImpl
-
- All Implemented Interfaces:
StateTransferLock
public class StateTransferLockImpl extends Object implements StateTransferLock
StateTransferLock
implementation.- 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 void
acquireExclusiveTopologyLock()
void
acquireSharedTopologyLock()
void
notifyTopologyInstalled(int topologyId)
void
notifyTransactionDataReceived(int topologyId)
void
releaseExclusiveTopologyLock()
void
releaseSharedTopologyLock()
void
stop()
CompletableFuture<Void>
topologyFuture(int expectedTopologyId)
boolean
topologyReceived(int expectedTopologyId)
CompletableFuture<Void>
transactionDataFuture(int expectedTopologyId)
boolean
transactionDataReceived(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, waitForTransactionData
-
-
-
-
Method Detail
-
stop
public void stop()
-
acquireExclusiveTopologyLock
public void acquireExclusiveTopologyLock()
- Specified by:
acquireExclusiveTopologyLock
in interfaceStateTransferLock
-
releaseExclusiveTopologyLock
public void releaseExclusiveTopologyLock()
- Specified by:
releaseExclusiveTopologyLock
in interfaceStateTransferLock
-
acquireSharedTopologyLock
public void acquireSharedTopologyLock()
- Specified by:
acquireSharedTopologyLock
in interfaceStateTransferLock
-
releaseSharedTopologyLock
public void releaseSharedTopologyLock()
- Specified by:
releaseSharedTopologyLock
in interfaceStateTransferLock
-
notifyTransactionDataReceived
public void notifyTransactionDataReceived(int topologyId)
- Specified by:
notifyTransactionDataReceived
in interfaceStateTransferLock
-
transactionDataFuture
public CompletableFuture<Void> transactionDataFuture(int expectedTopologyId)
- Specified by:
transactionDataFuture
in interfaceStateTransferLock
-
transactionDataReceived
public boolean transactionDataReceived(int expectedTopologyId)
- Specified by:
transactionDataReceived
in interfaceStateTransferLock
-
notifyTopologyInstalled
public void notifyTopologyInstalled(int topologyId)
- Specified by:
notifyTopologyInstalled
in interfaceStateTransferLock
-
topologyFuture
public CompletableFuture<Void> topologyFuture(int expectedTopologyId)
- Specified by:
topologyFuture
in interfaceStateTransferLock
-
topologyReceived
public boolean topologyReceived(int expectedTopologyId)
- Specified by:
topologyReceived
in interfaceStateTransferLock
-
-