@Test public void test_commit_fanout() throws Exception { txManager.commit(txId); verify(this.participantsManager).fanOutTransactionPrimitive(txId, "tx_commit"); }
@Override public void commit(UUID transactionId) { this.localStatusManager.setStatus(transactionId, LocalStatus.COMMITTED); this.validator.onCommit(transactionId); try { this.localParticipantsManager.fanOutTransactionPrimitive( transactionId, TwoPCPrimitive.Commit); } catch (TransactionExecutionException e) { } this.localParticipantsManager.cleanup(transactionId); }
TLSTransactionManager implements TransactionManager, Serializable { @Override public void commit(UUID transactionId) { this.localStatusManager.setStatus(transactionId, LocalStatus.COMMITTED); this.validator.onCommit(transactionId); try { this.localParticipantsManager.fanOutTransactionPrimitive( transactionId, TwoPCPrimitive.Commit); } catch (TransactionExecutionException e) { } this.localParticipantsManager.cleanup(transactionId); } }
TLSTransactionManager implements TransactionManager, Serializable { @Override public void commit(UUID transactionId) { this.localStatusManager.setStatus(transactionId, LocalStatus.COMMITTED); this.validator.onCommit(transactionId); try { this.localParticipantsManager.fanOutTransactionPrimitive( transactionId, TwoPCPrimitive.Commit); } catch (TransactionExecutionException e) { } this.localParticipantsManager.cleanup(transactionId); }  }
TLSTransactionManager implements TransactionManager, Serializable { @Override public void commit(UUID transactionId) { this.localStatusManager.setStatus(transactionId, LocalStatus.COMMITTED); this.validator.onCommit(transactionId); try { this.localParticipantsManager.fanOutTransactionPrimitive( transactionId, TwoPCPrimitive.Commit); } catch (TransactionExecutionException e) { } this.localParticipantsManager.cleanup(transactionId); }  void setValidator(TransactionValidator validator); @Override void join(UUID transactionId); @Override void leave(UUID transactionId); @Override Vote vote(UUID transactionId); @Override void commit(UUID transactionId); @Override void abort(UUID transactionId); }
TLSTransactionManager implements TransactionManager, Serializable { @Override public void commit(UUID transactionId) { this.localStatusManager.setStatus(transactionId, LocalStatus.COMMITTED); this.validator.onCommit(transactionId); try { this.localParticipantsManager.fanOutTransactionPrimitive( transactionId, TwoPCPrimitive.Commit); } catch (TransactionExecutionException e) { } this.localParticipantsManager.cleanup(transactionId); }  void setValidator(TransactionValidator validator); @Override void join(UUID transactionId); @Override void leave(UUID transactionId); @Override Vote vote(UUID transactionId); @Override void commit(UUID transactionId); @Override void abort(UUID transactionId);  }