org.infinispan.transaction.totalorder
Class TotalOrderLatchImpl

java.lang.Object
  extended by org.infinispan.transaction.totalorder.TotalOrderLatchImpl
All Implemented Interfaces:
TotalOrderLatch

public class TotalOrderLatchImpl
extends Object
implements TotalOrderLatch

Implementation of TotalOrderLatch

Since:
5.3
Author:
Pedro Ruivo

Constructor Summary
TotalOrderLatchImpl(String name)
           
 
Method Summary
 void awaitUntilUnBlock()
          It waits for this synchronization block to be unblocked.
 boolean equals(Object o)
           
 int hashCode()
           
 boolean isBlocked()
           
 String toString()
           
 void unBlock()
          Unblocks this synchronization block
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TotalOrderLatchImpl

public TotalOrderLatchImpl(String name)
Method Detail

isBlocked

public boolean isBlocked()
Specified by:
isBlocked in interface TotalOrderLatch
Returns:
true if this synchronization block is blocked

unBlock

public void unBlock()
Description copied from interface: TotalOrderLatch
Unblocks this synchronization block

Specified by:
unBlock in interface TotalOrderLatch

awaitUntilUnBlock

public void awaitUntilUnBlock()
                       throws InterruptedException
Description copied from interface: TotalOrderLatch
It waits for this synchronization block to be unblocked.

Specified by:
awaitUntilUnBlock in interface TotalOrderLatch
Throws:
InterruptedException - if interrupted while waiting.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

-->

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