Class AdjustableSemaphore

java.lang.Object
java.util.concurrent.Semaphore
org.elasticsearch.common.util.concurrent.AdjustableSemaphore
All Implemented Interfaces:
Serializable

public class AdjustableSemaphore extends Semaphore
See Also:
  • Constructor Details

    • AdjustableSemaphore

      public AdjustableSemaphore(int maxPermits, boolean fair)
  • Method Details

    • setMaxPermits

      public void setMaxPermits(int permits)