Class MetricBucketListener
java.lang.Object
com.giffing.bucket4j.spring.boot.starter.context.metrics.MetricBucketListener
- All Implemented Interfaces:
io.github.bucket4j.BucketListener
Marker Interface
-
Field Summary
Fields inherited from interface io.github.bucket4j.BucketListener
NOPE -
Constructor Summary
ConstructorsConstructorDescriptionMetricBucketListener(String name, List<MetricHandler> metricHandlers, List<MetricType> allowedTypes, List<MetricTagResult> tags) -
Method Summary
Modifier and TypeMethodDescriptionvoidonConsumed(long tokens) voidonDelayed(long nanos) voidvoidonParked(long nanos) voidonRejected(long tokens) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.bucket4j.BucketListener
beforeParking
-
Constructor Details
-
MetricBucketListener
public MetricBucketListener(String name, List<MetricHandler> metricHandlers, List<MetricType> allowedTypes, List<MetricTagResult> tags)
-
-
Method Details
-
onConsumed
public void onConsumed(long tokens) - Specified by:
onConsumedin interfaceio.github.bucket4j.BucketListener
-
onRejected
public void onRejected(long tokens) - Specified by:
onRejectedin interfaceio.github.bucket4j.BucketListener
-
onParked
public void onParked(long nanos) - Specified by:
onParkedin interfaceio.github.bucket4j.BucketListener
-
onInterrupted
- Specified by:
onInterruptedin interfaceio.github.bucket4j.BucketListener
-
onDelayed
public void onDelayed(long nanos) - Specified by:
onDelayedin interfaceio.github.bucket4j.BucketListener
-