public class StateTransferLockImpl extends Object implements StateTransferLock
StateTransferLock implementation.| Constructor and Description |
|---|
StateTransferLockImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireExclusiveTopologyLock() |
void |
acquireSharedTopologyLock() |
void |
notifyTopologyInstalled(int topologyId) |
void |
notifyTransactionDataReceived(int topologyId) |
void |
releaseExclusiveTopologyLock() |
void |
releaseSharedTopologyLock() |
void |
stop() |
boolean |
topologyReceived(int expectedTopologyId) |
boolean |
transactionDataReceived(int expectedTopologyId) |
void |
waitForTopology(int expectedTopologyId,
long timeout,
TimeUnit unit) |
void |
waitForTransactionData(int expectedTopologyId,
long timeout,
TimeUnit unit) |
public void stop()
public void acquireExclusiveTopologyLock()
acquireExclusiveTopologyLock in interface StateTransferLockpublic void releaseExclusiveTopologyLock()
releaseExclusiveTopologyLock in interface StateTransferLockpublic void acquireSharedTopologyLock()
acquireSharedTopologyLock in interface StateTransferLockpublic void releaseSharedTopologyLock()
releaseSharedTopologyLock in interface StateTransferLockpublic void notifyTransactionDataReceived(int topologyId)
notifyTransactionDataReceived in interface StateTransferLockpublic void waitForTransactionData(int expectedTopologyId,
long timeout,
TimeUnit unit)
throws InterruptedException
waitForTransactionData in interface StateTransferLockInterruptedExceptionpublic boolean transactionDataReceived(int expectedTopologyId)
transactionDataReceived in interface StateTransferLockpublic void notifyTopologyInstalled(int topologyId)
notifyTopologyInstalled in interface StateTransferLockpublic void waitForTopology(int expectedTopologyId,
long timeout,
TimeUnit unit)
throws InterruptedException
waitForTopology in interface StateTransferLockInterruptedExceptionpublic boolean topologyReceived(int expectedTopologyId)
topologyReceived in interface StateTransferLockCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.