@NotThreadSafe public final class ClosingBlockLease extends Object implements BlockLease
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClosingBlockLease.Closer |
| Constructor and Description |
|---|
ClosingBlockLease(Block block,
ClosingBlockLease.Closer... closers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Block |
get() |
static BlockLease |
newLease(Block block,
ClosingBlockLease.Closer... closers) |
public ClosingBlockLease(Block block, ClosingBlockLease.Closer... closers)
public static BlockLease newLease(Block block, ClosingBlockLease.Closer... closers)
public void close()
close in interface BlockLeaseclose in interface AutoCloseableCopyright © 2012–2022. All rights reserved.