Class TotalOrderLatchImpl
- java.lang.Object
-
- org.infinispan.transaction.totalorder.TotalOrderLatchImpl
-
- All Implemented Interfaces:
TotalOrderLatch
public class TotalOrderLatchImpl extends Object implements TotalOrderLatch
Implementation ofTotalOrderLatch- Since:
- 5.3
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description TotalOrderLatchImpl(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(Object o)inthashCode()booleanisBlocked()StringtoString()voidunBlock()Unblocks this synchronization block
-
-
-
Constructor Detail
-
TotalOrderLatchImpl
public TotalOrderLatchImpl(String name)
-
-
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 InterruptedExceptionDescription copied from interface:TotalOrderLatchIt waits for this synchronization block to be unblocked.- Specified by:
awaitUntilUnBlockin interfaceTotalOrderLatch- Throws:
InterruptedException- if interrupted while waiting.
-
-