Package | Description |
---|---|
com.ibm.asyncutil.locks |
Provides asynchronous analogues of synchronization primitives.
|
Modifier and Type | Method | Description |
---|---|---|
AsyncReadWriteLock.ReadLockToken |
AsyncReadWriteLock.WriteLockToken.downgradeLock() |
Downgrades this write lock acquisition to a read lock acquisition without any intermediate
release.
|
Modifier and Type | Method | Description |
---|---|---|
CompletionStage<AsyncReadWriteLock.ReadLockToken> |
AsyncNamedReadWriteLock.acquireReadLock(T name) |
Acquires the read lock associated with the given name.
|
CompletionStage<AsyncReadWriteLock.ReadLockToken> |
AsyncReadWriteLock.acquireReadLock() |
Acquires this read lock.
|
CompletionStage<AsyncReadWriteLock.ReadLockToken> |
FairAsyncNamedReadWriteLock.acquireReadLock(T name) |
|
CompletionStage<AsyncReadWriteLock.ReadLockToken> |
FairAsyncReadWriteLock.acquireReadLock() |
|
Optional<AsyncReadWriteLock.ReadLockToken> |
AsyncNamedReadWriteLock.tryReadLock(T name) |
Attempts to acquire the read lock associated with the given name.
|
Optional<AsyncReadWriteLock.ReadLockToken> |
AsyncReadWriteLock.tryReadLock() |
Attempts to immediately acquire the read lock, returning a populated
Optional if the
lock is not currently held by a writer. |
Optional<AsyncReadWriteLock.ReadLockToken> |
FairAsyncNamedReadWriteLock.tryReadLock(T name) |
|
Optional<AsyncReadWriteLock.ReadLockToken> |
FairAsyncReadWriteLock.tryReadLock() |
Attempt to immediately acquire the read lock, returning a populated
Optional if the
lock is not currently held by a writer and there are no writers queued in waiting (i.e. |
Copyright © 2018. All rights reserved.