org.jboss.aspects.asynch
Class FutureImpl

java.lang.Object
  extended by org.jboss.aspects.asynch.FutureImpl
All Implemented Interfaces:
Future, RemotableFuture

public class FutureImpl
extends Object
implements RemotableFuture

Comment

Version:
$Revision: 1.3.8.3 $
Author:
Bill Burke

Constructor Summary
FutureImpl(EDU.oswego.cs.dl.util.concurrent.FutureResult result)
           
 
Method Summary
 Object get()
          get result, throws Exception of method or InterruptedException
 Object get(long milliseconds)
          get result, throws Exception of method or InterruptedException
 boolean isDone()
          is the method call done?
 void release()
          Release this future so that it can be garbaged collected remotely This is only useful for remote asynchronous.
 void setRemoteObjectID(org.jboss.util.id.GUID remoteObjectID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureImpl

public FutureImpl(EDU.oswego.cs.dl.util.concurrent.FutureResult result)
Method Detail

setRemoteObjectID

public void setRemoteObjectID(org.jboss.util.id.GUID remoteObjectID)
Specified by:
setRemoteObjectID in interface RemotableFuture

release

public void release()
Description copied from interface: Future
Release this future so that it can be garbaged collected remotely This is only useful for remote asynchronous. This is import to call especially for remote otherwise the remote future on the server will never get garbaged collected. AsynchProvider will call release if it is holding a Future already within its threadlocal when a new one is set on it.

Specified by:
release in interface Future

get

public Object get()
           throws InterruptedException,
                  InvocationTargetException
Description copied from interface: Future
get result, throws Exception of method or InterruptedException

Specified by:
get in interface Future
Throws:
InterruptedException
InvocationTargetException

get

public Object get(long milliseconds)
           throws TimeoutException,
                  InterruptedException,
                  InvocationTargetException
Description copied from interface: Future
get result, throws Exception of method or InterruptedException

Specified by:
get in interface Future
Throws:
TimeoutException
InterruptedException
InvocationTargetException

isDone

public boolean isDone()
Description copied from interface: Future
is the method call done?

Specified by:
isDone in interface Future


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.