public interface Closeable extends Closeable, QueryCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this resource, potentially preventing parts of it from being used again
and potentially relinquishing resources held.
|
static void |
closeQuietly(Object... closeables) |
static void |
closeQuietly(@Nullable Object o) |
isClosed, isClosingstatic void closeQuietly(@Nullable
Object... closeables)
static void closeQuietly(@Nullable
@Nullable Object o)
void close()
This method is idem-potent.
close in interface AutoCloseableclose in interface CloseableIllegalStateException - if the resource cannot be closed.Copyright © 2022. All rights reserved.