FileDocCategorySizeDatePackage
AsynchMixin.javaAPI DocJBoss 4.2.12194Fri Jul 13 21:02:26 BST 2007org.jboss.aspects.asynch

AsynchMixin

public class AsynchMixin extends Object implements FutureHolder, AsynchProvider, Externalizable
Comment
author
Bill Burke
version
$Revision: 57186 $

Fields Summary
private static final long
serialVersionUID
private transient ThreadLocal
currentFuture
Constructors Summary
public AsynchMixin()


    
   
   
Methods Summary
public FuturegetFuture()

      Future future = (Future) currentFuture.get();
      currentFuture.set(null);
      return future;
   
public voidreadExternal(java.io.ObjectInput in)

      currentFuture = new ThreadLocal();
   
public voidsetFuture(Future future)

      Future oldFuture = (Future) currentFuture.get();
      try
      {
         if (oldFuture != null) oldFuture.release();
      }
      catch (Exception e)
      {
         // ignore
      }
      currentFuture.set(future);
   
public voidwriteExternal(java.io.ObjectOutput out)