public static class AutoCloseables.RollbackCloseable extends Object implements AutoCloseable
Constructor and Description |
---|
RollbackCloseable(AutoCloseable... closeables) |
Modifier and Type | Method and Description |
---|---|
<T extends AutoCloseable> |
add(T t) |
void |
addAll(AutoCloseable... list)
Add all of
list to the rollback list. |
void |
addAll(Iterable<? extends AutoCloseable> list)
Add all of
list to the rollback list. |
void |
close() |
void |
commit() |
public RollbackCloseable(AutoCloseable... closeables)
public <T extends AutoCloseable> T add(T t)
public void addAll(AutoCloseable... list)
list
to the rollback list.public void addAll(Iterable<? extends AutoCloseable> list)
list
to the rollback list.public void commit()
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2023 The Apache Software Foundation. All rights reserved.