| Package | Description |
|---|---|
| io.atlassian.util.concurrent |
| Modifier and Type | Method and Description |
|---|---|
static ManagedLock.ReadWrite |
ManagedLocks.manageReadWrite(ReadWriteLock lock)
Get a
ManagedLock.ReadWrite that
manages the supplied ReadWriteLock. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Function<T,ManagedLock.ReadWrite> |
ManagedLocks.weakReadWriteManagedLockFactory()
A convenience method for calling
ManagedLocks.weakReadWriteManagedLockFactory(Function) that uses the
identity function for
striping, essentially meaning that unique input will have its own lock. |
static <T,D> Function<T,ManagedLock.ReadWrite> |
ManagedLocks.weakReadWriteManagedLockFactory(Function<T,D> stripeFunction)
A convenience method for calling
ManagedLocks.weakReadWriteManagedLockFactory(Function, Supplier) that uses
default locks |
static <T,D> Function<T,ManagedLock.ReadWrite> |
ManagedLocks.weakReadWriteManagedLockFactory(Function<T,D> stripeFunction,
Supplier<ReadWriteLock> lockFactory)
Create a
Function for resolving
managed read-write locks. |
Copyright © 2024 Atlassian. All rights reserved.