@Test public void decrementBy1Transactional() throws Exception { TransactionSynchronizationManager.initSynchronization(); batchMetrics.decrement("counter.test", 1L); TransactionSynchronizationUtils.triggerAfterCompletion(TransactionSynchronization.STATUS_COMMITTED); TransactionSynchronizationManager.clearSynchronization(); }
@Override public void decrement(String metricName) { decrement(metricName, -1L); }
BatchMetricsImpl extends TransactionSynchronizationAdapter implements BatchMetrics { @Override public void decrement(String metricName) { decrement(metricName, -1L); } }
BatchMetricsImpl extends TransactionSynchronizationAdapter implements BatchMetrics { @Override public void decrement(String metricName) { decrement(metricName, -1L); } BatchMetricsImpl(); }
BatchMetricsImpl extends TransactionSynchronizationAdapter implements BatchMetrics { @Override public void decrement(String metricName) { decrement(metricName, -1L); } BatchMetricsImpl(); @Override void increment(String metricName); @Override void increment(String metricName, Long value); @Override void decrement(String metricName); @Override void decrement(String metricName, Long value); @Override void reset(String metricName); @Override void submit(String metricName, double value); @Override void incrementNonTransactional(String metricName); @Override void incrementNonTransactional(String metricName, Long value); @Override void decrementNonTransactional(String metricName); @Override void decrementNonTransactional(String metricName, Long value); @Override void resetNonTransactional(String metricName); @Override void submitNonTransactional(String metricName, double value); @Override void afterCompletion(int status); }
BatchMetricsImpl extends TransactionSynchronizationAdapter implements BatchMetrics { @Override public void decrement(String metricName) { decrement(metricName, -1L); } BatchMetricsImpl(); @Override void increment(String metricName); @Override void increment(String metricName, Long value); @Override void decrement(String metricName); @Override void decrement(String metricName, Long value); @Override void reset(String metricName); @Override void submit(String metricName, double value); @Override void incrementNonTransactional(String metricName); @Override void incrementNonTransactional(String metricName, Long value); @Override void decrementNonTransactional(String metricName); @Override void decrementNonTransactional(String metricName, Long value); @Override void resetNonTransactional(String metricName); @Override void submitNonTransactional(String metricName, double value); @Override void afterCompletion(int status);  }