| Package | Description |
|---|---|
| org.apache.ratis.util |
| Modifier and Type | Method and Description |
|---|---|
static AutoCloseableLock |
AutoCloseableLock.acquire(Lock lock)
Acquire the given lock and then wrap it with
AutoCloseableLock
so that the given lock can be released by calling close(),
or by using a try-with-resources statement as shown below. |
static AutoCloseableLock |
AutoCloseableLock.acquire(Lock lock,
Runnable preUnlock) |
AutoCloseableLock |
AutoCloseableReadWriteLock.readLock(StackTraceElement caller,
Consumer<String> log) |
AutoCloseableLock |
AutoCloseableReadWriteLock.writeLock(StackTraceElement caller,
Consumer<String> log) |
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.