public class CircuitBreakerMetricsImpl extends Object implements CircuitBreakerMetrics
Constructor and Description |
---|
CircuitBreakerMetricsImpl(int windowInSeconds) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(MetricsListener metricsListener)
Add metrics listener.
|
void |
close() |
void |
recordFailure()
Record a failure call.
|
void |
recordSuccess()
Record a successful call.
|
public void recordSuccess()
CircuitBreakerMetrics
recordSuccess
in interface CircuitBreakerMetrics
public void recordFailure()
CircuitBreakerMetrics
recordFailure
in interface CircuitBreakerMetrics
public void addListener(MetricsListener metricsListener)
CircuitBreakerMetrics
addListener
in interface CircuitBreakerMetrics
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2024 PingCAP. All rights reserved.