Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.statetransfer
Class StateTransferLockImpl

java.lang.Object
  extended by 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
StateTransferLockImpl()
           
 
Method Summary
 void acquireExclusiveTopologyLock()
           
 void acquireSharedTopologyLock()
           
 void notifyTopologyInstalled(int topologyId)
           
 void notifyTransactionDataReceived(int topologyId)
           
 void releaseExclusiveTopologyLock()
           
 void releaseSharedTopologyLock()
           
 void waitForTopology(int expectedTopologyId)
           
 void waitForTransactionData(int expectedTopologyId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateTransferLockImpl

public StateTransferLockImpl()
Method Detail

acquireExclusiveTopologyLock

public void acquireExclusiveTopologyLock()
Specified by:
acquireExclusiveTopologyLock in interface StateTransferLock

releaseExclusiveTopologyLock

public void releaseExclusiveTopologyLock()
Specified by:
releaseExclusiveTopologyLock in interface StateTransferLock

acquireSharedTopologyLock

public void acquireSharedTopologyLock()
Specified by:
acquireSharedTopologyLock in interface StateTransferLock

releaseSharedTopologyLock

public void releaseSharedTopologyLock()
Specified by:
releaseSharedTopologyLock in interface StateTransferLock

notifyTransactionDataReceived

public void notifyTransactionDataReceived(int topologyId)
Specified by:
notifyTransactionDataReceived in interface StateTransferLock

waitForTransactionData

public void waitForTransactionData(int expectedTopologyId)
                            throws InterruptedException
Specified by:
waitForTransactionData in interface StateTransferLock
Throws:
InterruptedException

notifyTopologyInstalled

public void notifyTopologyInstalled(int topologyId)
Specified by:
notifyTopologyInstalled in interface StateTransferLock

waitForTopology

public void waitForTopology(int expectedTopologyId)
                     throws InterruptedException
Specified by:
waitForTopology in interface StateTransferLock
Throws:
InterruptedException

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.