@Override public ListenableFuture<Void> commit() { ListenableFuture<Void> commitFuture = delegate.commit(); Futures.addCallback( commitFuture, new FutureCallback<Void>() { @Override public void onFailure(final Throwable t) { txChain.onTransactionFailed(transaction, t); } @Override public void onSuccess(final Void result) { txChain.onTransactionCommited(transaction); } }); return commitFuture; }
@Override public ListenableFuture<Void> preCommit() { return delegate.preCommit(); }
@Override public ListenableFuture<Void> abort() { return delegate.abort(); }
@Override public ListenableFuture<Boolean> canCommit() { return delegate.canCommit(); }