Package io.objectbox
Interface TxCallback<T>
public interface TxCallback<T>
Callback to be used for
BoxStore.runInTxAsync(Runnable, TxCallback)
and
BoxStore.callInTxAsync(Callable, TxCallback)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
txFinished
(T result, Throwable error) Called when an asynchronous transaction finished.
-
Method Details
-
txFinished
Called when an asynchronous transaction finished.- Parameters:
result
- Result of the callableBoxStore.callInTxAsync(Callable, TxCallback)
error
- non-null if an exception was thrown
-