Class LocalCircuitBreaker

java.lang.Object
org.elasticsearch.compute.data.LocalCircuitBreaker
All Implemented Interfaces:
Closeable, AutoCloseable, CircuitBreaker, org.elasticsearch.core.Releasable

public final class LocalCircuitBreaker extends Object implements CircuitBreaker, org.elasticsearch.core.Releasable
Requesting and returning memory from a CircuitBreaker can be costly due to the involvement of read/write on one or several atomic longs. To address this issue, the local breaker adopts a strategy of over-requesting memory, utilizing the reserved amount for subsequent memory requests without direct access to the actual breaker.
See Also: