com.atlassian.jira.concurrent
Class MockBarrierFactory
java.lang.Object
com.atlassian.jira.concurrent.MockBarrierFactory
- All Implemented Interfaces:
- BarrierFactory
public class MockBarrierFactory
- extends Object
- implements BarrierFactory
Mock BarrierFactory implementation.
Method Summary |
Barrier |
getBarrier(String barrierName)
Returns the Barrier with the given name, creating one if necessary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockBarrierFactory
public MockBarrierFactory()
getBarrier
@Nonnull
public Barrier getBarrier(String barrierName)
- Description copied from interface:
BarrierFactory
- Returns the
Barrier
with the given name, creating one if necessary.
- Specified by:
getBarrier
in interface BarrierFactory
- Parameters:
barrierName
- a String containing the barrier name
- Returns:
- a Barrier
Copyright © 2002-2014 Atlassian. All Rights Reserved.