AsyncLock.LockToken, AutoCloseablepublic static interface AsyncReadWriteLock.WriteLockToken extends AsyncLock.LockToken
releaseLock()| Modifier and Type | Method | Description |
|---|---|---|
AsyncReadWriteLock.ReadLockToken |
downgradeLock() |
Downgrades this write lock acquisition to a read lock acquisition without any intermediate
release.
|
void |
releaseLock() |
Releases this write lock, allowing readers or other writers to acquire it.
|
closevoid releaseLock()
releaseLock in interface AsyncLock.LockTokenAsyncReadWriteLock.ReadLockToken downgradeLock()
The returned AsyncReadWriteLock.ReadLockToken becomes the principle token for this acquisition; this
calling WriteLockToken should not be released afterwards, and may be abandoned freely.
Copyright © 2018. All rights reserved.