Class BambooLocks
- java.lang.Object
-
- com.atlassian.bamboo.utils.concurrent.BambooLocks
-
- Direct Known Subclasses:
BambooLocks
public class BambooLocks extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BambooLocks.AutoCloseableLock
static class
BambooLocks.CloseableLock
-
Constructor Summary
Constructors Modifier Constructor Description protected
BambooLocks()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K> com.google.common.cache.LoadingCache<K,BambooLocks.CloseableLock>
closeableLockFactory()
static BambooLocks.CloseableLock
newCloseableLock()
Creates a newBambooLocks.CloseableLock
, capable of generating autocloseable lockedLock
instances.static com.google.common.cache.LoadingCache<Object,ReentrantLock>
weakReentrantLockFactory()
static com.google.common.cache.LoadingCache<Object,ReentrantReadWriteLock>
weakReentrantReadWriteLockFactory()
-
-
-
Method Detail
-
closeableLockFactory
public static <K> com.google.common.cache.LoadingCache<K,BambooLocks.CloseableLock> closeableLockFactory()
-
weakReentrantLockFactory
public static com.google.common.cache.LoadingCache<Object,ReentrantLock> weakReentrantLockFactory()
-
weakReentrantReadWriteLockFactory
public static com.google.common.cache.LoadingCache<Object,ReentrantReadWriteLock> weakReentrantReadWriteLockFactory()
-
newCloseableLock
public static BambooLocks.CloseableLock newCloseableLock()
Creates a newBambooLocks.CloseableLock
, capable of generating autocloseable lockedLock
instances.
-
-