Interface TotalOrderLatch
-
- All Known Implementing Classes:
TotalOrderLatchImpl
public interface TotalOrderLatch
Behaves as a latch betweenorg.infinispan.commands.tx.PrepareCommand
delivered in total order to coordinate conflicting transactions and betweenorg.infinispan.commands.tx.PrepareCommand
and state transfer (blocking the prepare until the state transfer is finished and blocking the state transfer until all the prepared transactions has finished)- Since:
- 5.3
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
awaitUntilUnBlock()
It waits for this synchronization block to be unblocked.boolean
isBlocked()
void
unBlock()
Unblocks this synchronization block
-
-
-
Method Detail
-
isBlocked
boolean isBlocked()
- Returns:
- true if this synchronization block is blocked
-
unBlock
void unBlock()
Unblocks this synchronization block
-
awaitUntilUnBlock
void awaitUntilUnBlock() throws InterruptedException
It waits for this synchronization block to be unblocked.- Throws:
InterruptedException
- if interrupted while waiting.
-
-