Package org.apache.arrow.util
Class AutoCloseables.RollbackCloseable
java.lang.Object
org.apache.arrow.util.AutoCloseables.RollbackCloseable
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- AutoCloseables
A closeable wrapper that will close the underlying closeables if a commit does not occur.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends AutoCloseable>
Tadd
(T t) void
addAll
(AutoCloseable... list) Add all oflist
to the rollback list.void
addAll
(Iterable<? extends AutoCloseable> list) Add all oflist
to the rollback list.void
close()
void
commit()
-
Constructor Details
-
RollbackCloseable
-
-
Method Details
-
add
-
addAll
Add all oflist
to the rollback list. -
addAll
Add all oflist
to the rollback list. -
commit
public void commit() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-