public class BarrierControl extends BackdoorControl<BarrierControl>
| Modifier and Type | Class and Description |
|---|---|
class |
BarrierControl.Barrier
An instance of the barrier, provided to the BarrierFunction
|
static interface |
BarrierControl.BarrierFunction
A task to be run while the barrier is raised.
|
| Constructor and Description |
|---|
BarrierControl(JIRAEnvironmentData environmentData) |
| Modifier and Type | Method and Description |
|---|---|
void |
raiseBarrierAndRun(String barrierName,
BarrierControl.BarrierFunction function)
Raises the barrier called
barrierName and calls the given BarrierFunction before lowering the
barrier again. |
void |
raiseBarrierAndRun(String barrierName,
Runnable r)
Raises the barrier called
barrierName and calls the given Runnable before lowering the barrier
again. |
createResourcecreateResourceForPath, createResourceForPath, get, getRestModulePathanonymous, cleanUp, client, createResourceGadget, createResourceInternal, errorResponse, expanded, getEnvironmentData, loginAs, loginAs, percentEncode, registerResponse, resourceRoot, setOf, toResponse, toResponse, toResponsepublic BarrierControl(JIRAEnvironmentData environmentData)
public void raiseBarrierAndRun(String barrierName, Runnable r)
barrierName and calls the given Runnable before lowering the barrier
again. This is useful to test for race conditions in production code.barrierName - a String containing the barrier namer - a Runnablepublic void raiseBarrierAndRun(String barrierName, BarrierControl.BarrierFunction function)
barrierName and calls the given BarrierFunction before lowering the
barrier again. The BarrierFunction is provided with the Barrier for fine-grained control.barrierName - a String containing the barrier namefunction - a BarrierFunctionCopyright © 2002-2016 Atlassian. All Rights Reserved.