| Package | Description |
|---|---|
| io.atlassian.util.concurrent |
| Modifier and Type | Method and Description |
|---|---|
static ManagedLock |
ManagedLocks.manage(Lock lock)
Get a
ManagedLock that manages the
supplied Lock. |
static ManagedLock |
ManagedLocks.newManagedLock()
Get a
ManagedLock that manages a
ReentrantLock. |
ManagedLock |
ManagedLock.ReadWrite.read()
For performing operations that require read locks
|
ManagedLock |
ManagedLock.ReadWrite.write()
For performing operations that require write locks
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Function<T,ManagedLock> |
ManagedLocks.weakManagedLockFactory()
Convenience method that calls
ManagedLocks.weakManagedLockFactory(Function)
using the identity function
for striping, essentially meaning that unique input will have its own lock. |
static <T,D> Function<T,ManagedLock> |
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction)
Convenience method that simply calls
ManagedLocks.weakManagedLockFactory(Function, Supplier) with the
ManagedLocks.lockFactory default lock factory. |
static <T,D> Function<T,ManagedLock> |
ManagedLocks.weakManagedLockFactory(Function<T,D> stripeFunction,
Supplier<Lock> lockFactory)
Create a
Function for resolving
managed locks . |
Copyright © 2024 Atlassian. All rights reserved.