@Override public void postTxCommit() { if (consumer instanceof TransactionAware) { ((TransactionAware) consumer).postTxCommit(); } }
@Override public void postTxCommit() { if (txAware != null) { txAware.postTxCommit(); } }
@Override public void postTxCommit() { for (TransactionAware txAware : this) { txAware.postTxCommit(); } }
@Override public void postTxCommit() { txAwares.postTxCommit(); }
@Override public void postTxCommit() { delegate().postTxCommit(); }
/** * Calls {@link TransactionAware#postTxCommit()} methods on all {@link TransactionAware} acquired through this * {@link DatasetContext}. */ private void postCommit() { for (TransactionAware txAware : getTransactionAwares()) { try { txAware.postTxCommit(); } catch (Exception e) { LOG.warn("Exception raised in postTxCommit call on TransactionAware {}", txAware, e); } } }
/** * Calls {@link TransactionAware#postTxCommit()} methods on all {@link TransactionAware} acquired through this * {@link DatasetContext}. */ private void postCommit() { for (TransactionAware txAware : getTransactionAwares()) { try { txAware.postTxCommit(); } catch (Exception e) { LOG.warn("Exception raised in postTxCommit call on TransactionAware {}", txAware, e); } } }
@Override public final void postTxCommit() { getCurrentThreadTransactionAware().postTxCommit(); }
/** * Calls {@link TransactionAware#postTxCommit()} methods on all {@link TransactionAware} acquired through this * {@link DatasetContext}. */ private void postCommit() { for (TransactionAware txAware : getTransactionAwares()) { try { txAware.postTxCommit(); } catch (Exception e) { LOG.warn("Exception raised in postTxCommit call on TransactionAware {}", txAware, e); } } }
@Override public void postTxCommit() { delegate().postTxCommit(); }
@Override public final void postTxCommit() { getCurrentThreadTransactionAware().postTxCommit(); }
/** * Calls postTxCommit on all the transaction-aware datasets participating in this context. * If any Throwable is encountered, it is suppressed and logged. */ public void postTxCommit() throws Exception { if (transaction == null) { return; } for (TransactionAware txAware : txAwares) { try { txAware.postTxCommit(); } catch (Throwable t) { LOG.error("Unable to perform post-commit in transaction-aware '{}' for transaction {}.", txAware.getTransactionAwareName(), transaction.getTransactionId(), t); } } }
/** * Calls postTxCommit on all the transaction-aware datasets participating in this context. * If any Throwable is encountered, it is suppressed and logged. */ public void postTxCommit() throws Exception { if (transaction == null) { return; } for (TransactionAware txAware : txAwares) { try { txAware.postTxCommit(); } catch (Throwable t) { LOG.error("Unable to perform post-commit in transaction-aware '{}' for transaction {}.", txAware.getTransactionAwareName(), transaction.getTransactionId(), t); } } }
private void postCommit() throws TransactionFailureException { TransactionFailureException cause = null; for (TransactionAware txAware : txAwares) { try { txAware.postTxCommit(); } catch (Throwable t) { TransactionFailureException tfe = createTransactionFailure("perform post-commit for", txAware, t); LOG.warn(tfe.getMessage()); if (cause == null) { cause = tfe; } else { cause.addSuppressed(tfe); } } } if (cause != null) { throw cause; } }
/** * Calls the {@link TransactionAware#postTxCommit()} on all {@link TransactionAware}. */ private void postCommit() throws TransactionFailureException { TransactionFailureException cause = null; for (TransactionAware txAware : getTransactionAwares()) { try { txAware.postTxCommit(); } catch (Throwable t) { TransactionFailureException tfe = createTransactionFailure("perform post-commit for", txAware, t); if (cause == null) { cause = tfe; } else { cause.addSuppressed(tfe); } } } if (cause != null) { throw cause; } }
/** * Calls the {@link TransactionAware#postTxCommit()} on all {@link TransactionAware}. */ private void postCommit() throws TransactionFailureException { TransactionFailureException cause = null; for (TransactionAware txAware : getTransactionAwares()) { try { txAware.postTxCommit(); } catch (Throwable t) { TransactionFailureException tfe = createTransactionFailure("perform post-commit for", txAware, t); if (cause == null) { cause = tfe; } else { cause.addSuppressed(tfe); } } } if (cause != null) { throw cause; } }
((TransactionAware) cube1).postTxCommit(); ((TransactionAware) cube2).postTxCommit(); } finally { txManager.stopAndWait();
Assert.assertTrue(((TransactionAware) table).commitTx()); txClient.commitOrThrow(tx1); ((TransactionAware) table).postTxCommit();
Assert.assertTrue(((TransactionAware) table).commitTx()); txClient.commitOrThrow(tx0); ((TransactionAware) table).postTxCommit(); Assert.assertTrue(((TransactionAware) table2).commitTx()); txClient.commitOrThrow(tx2); ((TransactionAware) table2).postTxCommit(); Assert.assertTrue(((TransactionAware) table2).commitTx()); txClient.commitOrThrow(tx4); ((TransactionAware) table2).postTxCommit();
Assert.assertTrue(((TransactionAware) myTable0).commitTx()); txClient.commitOrThrow(tx0); ((TransactionAware) myTable0).postTxCommit();