public final class OpOrder.Barrier
extends java.lang.Object
OpOrder
for idiomatic usage.Constructor and Description |
---|
Barrier() |
Modifier and Type | Method and Description |
---|---|
boolean |
allPriorOpsAreFinished() |
void |
await()
wait for all operations started prior to issuing the barrier to complete
|
OpOrder.Group |
getSyncPoint()
returns the Group we are waiting on - any Group with .compareTo(getSyncPoint()) <= 0
must complete before await() returns
|
boolean |
isAfter(OpOrder.Group group) |
void |
issue()
Issues (seals) the barrier, meaning no new operations may be issued against it, and expires the current
Group.
|
void |
markBlocking()
Mark all prior operations as blocking, potentially signalling them to more aggressively make progress
|
WaitQueue.Signal |
register()
Register to be signalled once allPriorOpsAreFinished() or allPriorOpsAreFinishedOrSafe() may return true
|
public boolean isAfter(OpOrder.Group group)
public void issue()
public void markBlocking()
public WaitQueue.Signal register()
public boolean allPriorOpsAreFinished()
public void await()
public OpOrder.Group getSyncPoint()
Copyright © 2015 The Apache Software Foundation