org.apache.solr.util
Class AdjustableSemaphore
java.lang.Object
org.apache.solr.util.AdjustableSemaphore
public final class AdjustableSemaphore
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdjustableSemaphore
public AdjustableSemaphore(int size)
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-2013 Apache Software Foundation. All Rights Reserved.