com.pelzer.util
Class SafeSemaphore.Permit

java.lang.Object
  extended by com.pelzer.util.SafeSemaphore.Permit
Enclosing class:
SafeSemaphore

public class SafeSemaphore.Permit
extends Object


Method Summary
protected  void finalize()
          Makes sure this permit is released.
 void release()
          If this permit is still valid, calls release() on the parent semaphore.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

release

public void release()
If this permit is still valid, calls release() on the parent semaphore. Otherwise does nothing.


finalize

protected void finalize()
                 throws Throwable
Makes sure this permit is released.

Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2012. All Rights Reserved.