public interface WriteLock extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
lock()
Guaranteed to succeed in getting the lock (may involve timeout and recovery) or else throw.
|
default boolean |
locked() |
void |
unlock()
May not unlock.
|
static final WriteLock NO_OP
void lock()
This is not re-entrant i.e. if you lock and try and lock again it will timeout and recover
void unlock()
void close()
close in interface AutoCloseableclose in interface Closeabledefault boolean locked()
Copyright © 2021. All rights reserved.