public class BatchMetricsImpl extends org.springframework.transaction.support.TransactionSynchronizationAdapter implements BatchMetrics
BatchMetrics for documentation.| Constructor and Description |
|---|
BatchMetricsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(int status) |
void |
decrement(String metricName)
Decrement the specified counter by 1.
|
void |
decrement(String metricName,
Long value)
Decrement the specified counter by the given value.
|
void |
decrementNonTransactional(String metricName)
Decrement the specified counter by 1.
|
void |
decrementNonTransactional(String metricName,
Long value)
Decrement the specified counter by the given value.
|
void |
increment(String metricName)
Increment the specified counter by 1.
|
void |
increment(String metricName,
Long value)
Increment the specified counter by the given value.
|
void |
incrementNonTransactional(String metricName)
Increment the specified counter by 1.
|
void |
incrementNonTransactional(String metricName,
Long value)
Increment the specified counter by the given value.
|
void |
reset(String metricName)
Reset the specified counter.
|
void |
resetNonTransactional(String metricName)
Reset the specified counter.
|
void |
submit(String metricName,
double value)
Set the specified gauge value.
|
void |
submitNonTransactional(String metricName,
double value)
Set the specified gauge value
|
public void increment(String metricName)
BatchMetricsincrement in interface BatchMetricsmetricName - the name of the counterpublic void increment(String metricName, Long value)
BatchMetricsincrement in interface BatchMetricsmetricName - the name of the countervalue - the amount to increment bypublic void decrement(String metricName)
BatchMetricsdecrement in interface BatchMetricsmetricName - the name of the counterpublic void decrement(String metricName, Long value)
BatchMetricsdecrement in interface BatchMetricsmetricName - the name of the countervalue - the amount to decrement bypublic void reset(String metricName)
BatchMetricsreset in interface BatchMetricsmetricName - the name of the counterpublic void submit(String metricName, double value)
BatchMetricssubmit in interface BatchMetricsmetricName - the name of the gauge to setvalue - the value of the gaugepublic void incrementNonTransactional(String metricName)
BatchMetricsincrementNonTransactional in interface BatchMetricsmetricName - the name of the counterpublic void incrementNonTransactional(String metricName, Long value)
BatchMetricsincrementNonTransactional in interface BatchMetricsmetricName - the name of the countervalue - the amount to increment bypublic void decrementNonTransactional(String metricName)
BatchMetricsdecrementNonTransactional in interface BatchMetricsmetricName - the name of the counterpublic void decrementNonTransactional(String metricName, Long value)
BatchMetricsdecrementNonTransactional in interface BatchMetricsmetricName - the name of the countervalue - the amount to decrement bypublic void resetNonTransactional(String metricName)
BatchMetricsresetNonTransactional in interface BatchMetricsmetricName - the name of the counterpublic void submitNonTransactional(String metricName, double value)
BatchMetricssubmitNonTransactional in interface BatchMetricsmetricName - the name of the gauge to setvalue - the value of the gaugepublic void afterCompletion(int status)
afterCompletion in interface org.springframework.transaction.support.TransactionSynchronizationafterCompletion in class org.springframework.transaction.support.TransactionSynchronizationAdapterCopyright © 2018 codecentric AG. All rights reserved.