@Singleton public class Closer extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
Closer.State |
Constructor and Description |
---|
Closer() |
Modifier and Type | Method and Description |
---|---|
void |
addToClose(Closeable toClose) |
void |
close() |
Closer.State |
getState() |
public void addToClose(Closeable toClose)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public Closer.State getState()
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.