private void registerSync(ActiveMQDestination destination, Transaction transaction, BaseCommand command) { Synchronization sync = new PreparedDestinationCompletion(this, destination, command.isMessage()); // ensure one per destination in the list Synchronization existing = transaction.findMatching(sync); if (existing != null) { ((PreparedDestinationCompletion)existing).incrementOpCount(); } else { transaction.addSynchronization(sync); } }
private void registerSync(Destination destination, Transaction transaction, BaseCommand command) { Synchronization sync = new PreparedDestinationCompletion(destination, command.isMessage()); // ensure one per destination in the list Synchronization existing = transaction.findMatching(sync); if (existing != null) { ((PreparedDestinationCompletion)existing).incrementOpCount(); } else { transaction.addSynchronization(sync); } }
private void registerSync(Destination destination, Transaction transaction, BaseCommand command) { Synchronization sync = new PreparedDestinationCompletion(destination, command.isMessage()); // ensure one per destination in the list Synchronization existing = transaction.findMatching(sync); if (existing != null) { ((PreparedDestinationCompletion)existing).incrementOpCount(); } else { transaction.addSynchronization(sync); } }
private void registerSync(Destination destination, Transaction transaction, BaseCommand command) { Synchronization sync = new PreparedDestinationCompletion(destination, command.isMessage()); // ensure one per destination in the list Synchronization existing = transaction.findMatching(sync); if (existing != null) { ((PreparedDestinationCompletion)existing).incrementOpCount(); } else { transaction.addSynchronization(sync); } }