Module org.apache.arrow.memory.core
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
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends AutoCloseable>
Tadd(T t) voidaddAll(@Nullable AutoCloseable... list) Add all oflistto the rollback list.voidaddAll(@Nullable Iterable<? extends @Nullable AutoCloseable> list) Add all oflistto the rollback list.voidclose()voidcommit()
-
Constructor Details
-
RollbackCloseable
-
-
Method Details
-
add
-
addAll
Add all oflistto the rollback list. -
addAll
Add all oflistto the rollback list. -
commit
public void commit() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-