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 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
-
-
-
Constructor Detail
-
TotalOrderLatchImpl
public TotalOrderLatchImpl(String name)
-
-
Method Detail
-
isBlocked
public boolean isBlocked()
- Specified by:
isBlocked
in interfaceTotalOrderLatch
- 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 interfaceTotalOrderLatch
-
awaitUntilUnBlock
public void awaitUntilUnBlock() throws InterruptedException
Description copied from interface:TotalOrderLatch
It waits for this synchronization block to be unblocked.- Specified by:
awaitUntilUnBlock
in interfaceTotalOrderLatch
- Throws:
InterruptedException
- if interrupted while waiting.
-
-