org.jboss.aspects.concurrent
Class SemaphoredMethodAspect

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

public class SemaphoredMethodAspect
extends Object

comment

Author:
Bill Burke

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

Field Detail

semaphore

protected Semaphore semaphore

props

protected SemaphoredMethod props
Constructor Detail

SemaphoredMethodAspect

public SemaphoredMethodAspect(SemaphoredMethod m)
Method Detail

acquire

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

blockIndefinately

protected void blockIndefinately()

tryLock

protected void tryLock()

tryLockWithTimeout

protected void tryLockWithTimeout()


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