Class TotalOrderLatchImpl
- java.lang.Object
-
- org.infinispan.transaction.totalorder.TotalOrderLatchImpl
-
- All Implemented Interfaces:
TotalOrderLatch
public class TotalOrderLatchImpl extends java.lang.Object implements TotalOrderLatch
Implementation ofTotalOrderLatch- Since:
- 5.3
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description TotalOrderLatchImpl(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitUntilUnBlock()It waits for this synchronization block to be unblocked.booleanequals(java.lang.Object o)inthashCode()booleanisBlocked()java.lang.StringtoString()voidunBlock()Unblocks this synchronization block
-
-
-
Method Detail
-
isBlocked
public boolean isBlocked()
- Specified by:
isBlockedin interfaceTotalOrderLatch- Returns:
- true if this synchronization block is blocked
-
unBlock
public void unBlock()
Description copied from interface:TotalOrderLatchUnblocks this synchronization block- Specified by:
unBlockin interfaceTotalOrderLatch
-
awaitUntilUnBlock
public void awaitUntilUnBlock() throws java.lang.InterruptedExceptionDescription copied from interface:TotalOrderLatchIt waits for this synchronization block to be unblocked.- Specified by:
awaitUntilUnBlockin interfaceTotalOrderLatch- Throws:
java.lang.InterruptedException- if interrupted while waiting.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-