FileDocCategorySizeDatePackage
LatchedObjectMixin.javaAPI DocJBoss 4.2.11609Fri Jul 13 21:02:36 BST 2007org.jboss.aspects.concurrent

LatchedObjectMixin

public class LatchedObjectMixin extends Object implements LatchedObject
comment
author
Bill Burke

Fields Summary
private CountDownLatch
latch
Constructors Summary
public LatchedObjectMixin(Object obj)

      Latched l = obj.getClass().getAnnotation(Latched.class);
      latch = new CountDownLatch(l.countdown());
   
Methods Summary
public java.util.concurrent.CountDownLatchgetLatch()

      return latch;
   
public voidresetLatch(int count)

      latch = new CountDownLatch(count);