AsyncLock.LockToken
, AutoCloseable
public 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.
|
close
void releaseLock()
releaseLock
in interface AsyncLock.LockToken
AsyncReadWriteLock.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.