Package | Description |
---|---|
com.ibm.asyncutil.locks |
Provides asynchronous analogues of synchronization primitives.
|
Modifier and Type | Interface | Description |
---|---|---|
static interface |
AsyncReadWriteLock.ReadLockToken |
A lock token indicating that the associated lock has been acquired for reader access.
|
static interface |
AsyncReadWriteLock.WriteLockToken |
A lock token indicating that the associated lock has been exclusively acquired for writer
access.
|
Modifier and Type | Method | Description |
---|---|---|
CompletionStage<AsyncLock.LockToken> |
AsyncLock.acquireLock() |
Exclusively acquires this lock.
|
CompletionStage<AsyncLock.LockToken> |
AsyncNamedLock.acquireLock(T name) |
Acquires the lock associated with the given name.
|
CompletionStage<AsyncLock.LockToken> |
FairAsyncLock.acquireLock() |
|
CompletionStage<AsyncLock.LockToken> |
FairAsyncNamedLock.acquireLock(T name) |
|
Optional<AsyncLock.LockToken> |
AsyncLock.tryLock() |
Attempts to immediately acquire the lock, returning a populated
Optional if the lock is
not currently held. |
Optional<AsyncLock.LockToken> |
AsyncNamedLock.tryLock(T name) |
Attempts to immediately acquire the lock associated with the given name, returning a populated
Optional if the lock is not currently held. |
Optional<AsyncLock.LockToken> |
FairAsyncLock.tryLock() |
|
Optional<AsyncLock.LockToken> |
FairAsyncNamedLock.tryLock(T name) |
Copyright © 2018. All rights reserved.