public interface Closeable extends Closeable, QueryCloseable
Closeable that participates in the Chronicle
resource lifecycle.
Typical usage is via try-with-resources where close() is
invoked automatically. Implementations normally extend
AbstractCloseable to delegate their cleanup to
AbstractCloseable.performClose().
Thread safety is implementation specific; callers should assume instances are not thread-safe unless stated otherwise.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release any underlying resources.
|
static void |
closeQuietly(Object... closeables)
Close the supplied resources without propagating any exception.
|
static void |
closeQuietly(@Nullable Object o)
Variant for a single resource.
|
isClosed, isClosingstatic void closeQuietly(@Nullable
Object... closeables)
Closeable.closeQuietly(in, socket);
closeables - resources to closeAbstractCloseable.performClose()static void closeQuietly(@Nullable
@Nullable Object o)
ServerSocketChannel
are handled transparently.o - resource to closeAbstractCloseable.performClose()void close()
close in interface AutoCloseableclose in interface CloseableIllegalStateException - if the resource refuses to closeAbstractCloseable.performClose()Copyright © 2026 Chronicle Software Ltd. All rights reserved.