Package io.objectbox
Interface TxCallback<T>
-
public interface TxCallback<T>Callback to be used forBoxStore.runInTxAsync(Runnable, TxCallback)andBoxStore.callInTxAsync(Callable, TxCallback).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtxFinished(T result, java.lang.Throwable error)Called when an asynchronous transaction finished.
-
-
-
Method Detail
-
txFinished
void txFinished(@Nullable T result, @Nullable java.lang.Throwable error)Called when an asynchronous transaction finished.- Parameters:
result- Result of the callableBoxStore.callInTxAsync(Callable, TxCallback)error- non-null if an exception was thrown
-
-