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() |
boolean |
transactionDataReceived(int expectedTopologyId) |
void |
waitForTopology(int expectedTopologyId,
long timeout,
TimeUnit unit) |
void |
waitForTransactionData(int expectedTopologyId,
long timeout,
TimeUnit unit) |
public void acquireExclusiveTopologyLock()
acquireExclusiveTopologyLock
in interface StateTransferLock
public void releaseExclusiveTopologyLock()
releaseExclusiveTopologyLock
in interface StateTransferLock
public void acquireSharedTopologyLock()
acquireSharedTopologyLock
in interface StateTransferLock
public void releaseSharedTopologyLock()
releaseSharedTopologyLock
in interface StateTransferLock
public void notifyTransactionDataReceived(int topologyId)
notifyTransactionDataReceived
in interface StateTransferLock
public void waitForTransactionData(int expectedTopologyId, long timeout, TimeUnit unit) throws InterruptedException
waitForTransactionData
in interface StateTransferLock
InterruptedException
public boolean transactionDataReceived(int expectedTopologyId)
transactionDataReceived
in interface StateTransferLock
public void notifyTopologyInstalled(int topologyId)
notifyTopologyInstalled
in interface StateTransferLock
public void waitForTopology(int expectedTopologyId, long timeout, TimeUnit unit) throws InterruptedException
waitForTopology
in interface StateTransferLock
InterruptedException
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.