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 theBarrierwith the given name, creating one if necessary.
-
Constructor Details
-
MockBarrierFactory
public MockBarrierFactory()
-
-
Method Details
-
getBarrier
Description copied from interface:BarrierFactoryReturns theBarrierwith the given name, creating one if necessary.- Specified by:
getBarrierin interfaceBarrierFactory- Parameters:
barrierName- a String containing the barrier name- Returns:
- a Barrier
-