org.apache.solr.util
Class AdjustableSemaphore

java.lang.Object
  extended by org.apache.solr.util.AdjustableSemaphore

public final class AdjustableSemaphore
extends Object


Constructor Summary
AdjustableSemaphore(int size)
           
 
Method Summary
 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-2013 Apache Software Foundation. All Rights Reserved.