Class NoneCircuitBreakerService
java.lang.Object
org.opensearch.common.lifecycle.AbstractLifecycleComponent
org.opensearch.core.indices.breaker.CircuitBreakerService
org.opensearch.core.indices.breaker.NoneCircuitBreakerService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.opensearch.common.lease.Releasable,org.opensearch.common.lifecycle.LifecycleComponent
Class that returns a breaker that use the NoopCircuitBreaker and never breaks
- See Also:
- Opensearch.internal:
-
Field Summary
Fields inherited from class org.opensearch.common.lifecycle.AbstractLifecycleComponent
lifecycle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBreaker(String name) Returns a breaker that use the NoopCircuitBreaker and never breaksstats()Always returns the same stats, a NoopCircuitBreaker never breaks and all operations are noops.Methods inherited from class org.opensearch.core.indices.breaker.CircuitBreakerService
doClose, doStart, doStopMethods inherited from class org.opensearch.common.lifecycle.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
-
Constructor Details
-
NoneCircuitBreakerService
public NoneCircuitBreakerService()
-
-
Method Details
-
getBreaker
Returns a breaker that use the NoopCircuitBreaker and never breaks- Specified by:
getBreakerin classCircuitBreakerService- Parameters:
name- name of the breaker (ignored)- Returns:
- a NoopCircuitBreaker
-
stats
- Specified by:
statsin classCircuitBreakerService- Returns:
- stats about all breakers
-
stats
Always returns the same stats, a NoopCircuitBreaker never breaks and all operations are noops.- Specified by:
statsin classCircuitBreakerService- Parameters:
name- name of the breaker (ignored)- Returns:
- always "fielddata", limit: -1, estimated: -1, overhead: 0, trippedCount: 0
-