@FunctionalInterface
public interface Guard
extends java.lang.AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static Guard |
EMPTY_GUARD |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases this guard.
|
default Guard |
closeableOnce() |
static Guard |
closeableOnce(Guard guard) |
static Guard |
multi(Guard... guards)
Returns a guard that is a composition of multiple guards.
|