Class PreallocatedCircuitBreakerService

java.lang.Object
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, LifecycleComponent, org.elasticsearch.common.lease.Releasable

public class PreallocatedCircuitBreakerService
extends CircuitBreakerService
implements org.elasticsearch.common.lease.Releasable
CircuitBreakerService that preallocates some bytes on construction. Use this when you know you'll be allocating many small things on a CircuitBreaker quickly and there is a definite "finished" time, like when aggregations are built.
  • Constructor Details

    • PreallocatedCircuitBreakerService

      public PreallocatedCircuitBreakerService​(CircuitBreakerService next, java.lang.String breakerToPreallocate, long bytesToPreallocate, java.lang.String label)
  • Method Details