org.jboss.aspects.concurrent
Class SemaphoreAspect

java.lang.Object
  extended by org.jboss.aspects.concurrent.SemaphoreAspect

public class SemaphoreAspect
extends Object

comment

Author:
Bill Burke

Field Summary
protected  SemaphoreLocked props
           
 
Constructor Summary
SemaphoreAspect(SemaphoreLocked locked)
           
 
Method Summary
 Object acquire(Invocation invocation)
           
protected  void blockIndefinately(Semaphore semaphore)
           
protected  void tryLock(Semaphore semaphore)
           
protected  void tryLockWithTimeout(Semaphore semaphore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

protected SemaphoreLocked props
Constructor Detail

SemaphoreAspect

public SemaphoreAspect(SemaphoreLocked locked)
Method Detail

acquire

public Object acquire(Invocation invocation)
               throws Throwable
Throws:
Throwable

blockIndefinately

protected void blockIndefinately(Semaphore semaphore)

tryLock

protected void tryLock(Semaphore semaphore)

tryLockWithTimeout

protected void tryLockWithTimeout(Semaphore semaphore)


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.