org.jboss.messaging.util
Class ClearableSemaphore

java.lang.Object
  extended by org.jboss.messaging.util.ClearableSemaphore

public class ClearableSemaphore
extends java.lang.Object

Version:
$Revision: $20 Oct 2007 $Id: $
Author:
Tim Fox

Field Summary
protected  Logger log
           
 
Constructor Summary
ClearableSemaphore(int permits)
           
 
Method Summary
 void acquire()
           
 void disable()
           
 void enable()
           
 void release()
           
 boolean tryAcquire(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Logger log
Constructor Detail

ClearableSemaphore

public ClearableSemaphore(int permits)
Method Detail

acquire

public void acquire()
             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

tryAcquire

public boolean tryAcquire(long timeout)
                   throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

release

public void release()

disable

public void disable()

enable

public void enable()


Copyright © 2006 JBoss Inc. All Rights Reserved.