org.apache.solr.util

## Class AdjustableSemaphore

- java.lang.Object
- - org.apache.solr.util.AdjustableSemaphore

-     public final class AdjustableSemaphore
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AdjustableSemaphore(int size)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `acquire()`
    `int` | `getMaxPermits()`
    `void` | `release()`
    `void` | `release(int numPermits)`
    `void` | `setMaxPermits(int newMax)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AdjustableSemaphore

          public AdjustableSemaphore(int size)

  - ### Method Detail

    - #### setMaxPermits

          public void setMaxPermits(int newMax)

    - #### release

          public void release()

    - #### release

          public void release(int numPermits)

    - #### acquire

          public void acquire()
                       throws InterruptedException

      Throws:
        `InterruptedException`

    - #### getMaxPermits

          public int getMaxPermits()

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.