Package com.atlassian.jira.concurrent
Class MockBarrierFactory
java.lang.Object
com.atlassian.jira.concurrent.MockBarrierFactory
- All Implemented Interfaces:
BarrierFactory
Mock BarrierFactory implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBarrier
(String barrierName) Returns theBarrier
with the given name, creating one if necessary.
-
Constructor Details
-
MockBarrierFactory
public MockBarrierFactory()
-
-
Method Details
-
getBarrier
Description copied from interface:BarrierFactory
Returns theBarrier
with the given name, creating one if necessary.- Specified by:
getBarrier
in interfaceBarrierFactory
- Parameters:
barrierName
- a String containing the barrier name- Returns:
- a Barrier
-