org.objectweb.proactive.core.body.future
Interface Future

All Superinterfaces:
Handlerizable, LocalFuture
All Known Implementing Classes:
FutureProxy

public interface Future
extends LocalFuture

An object implementing this interface if a place holder object for an upcomming result yet to come.

see active object creation doumentation

Since:
ProActive 0.9
Version:
1.0, 2001/10/23
Author:
ProActive Team

Method Summary
 UniqueID getCreatorID()
          To get the creatorID.
 long getID()
          To get the sequence id of this future.
 java.lang.Throwable getRaisedException()
           
 java.lang.Object getResult()
           
 boolean isAwaited()
           
 void setCreatorID(UniqueID i)
          To set the creatorID, ie the UniqueID of the body which create this future
 void setID(long id)
          To set the sequence id of this future.
 void setSenderID(UniqueID i)
          To set the senderID, ie the UniqueID of the body that will send this future, in case of automatic continuation.
 void waitFor()
          Blocks the calling thread until the future object is available.
 void waitFor(long timeout)
          Blocks the calling thread until the future object is available or the timeout expires
 
Methods inherited from interface org.objectweb.proactive.core.body.future.LocalFuture
receiveReply
 
Methods inherited from interface org.objectweb.proactive.core.exceptions.Handlerizable
clearHandlersLevel, getHandlerizableInfo, getHandlersLevel, setExceptionHandler, unsetExceptionHandler
 

Method Detail

isAwaited

public boolean isAwaited()

waitFor

public void waitFor(long timeout)
             throws ProActiveException
Blocks the calling thread until the future object is available or the timeout expires

Parameters:
timeout -
Throws:
ProActiveException - if the timeout expires

waitFor

public void waitFor()
Blocks the calling thread until the future object is available.


getRaisedException

public java.lang.Throwable getRaisedException()

getResult

public java.lang.Object getResult()

setID

public void setID(long id)
To set the sequence id of this future.


getID

public long getID()
To get the sequence id of this future.


setCreatorID

public void setCreatorID(UniqueID i)
To set the creatorID, ie the UniqueID of the body which create this future


getCreatorID

public UniqueID getCreatorID()
To get the creatorID.


setSenderID

public void setSenderID(UniqueID i)
To set the senderID, ie the UniqueID of the body that will send this future, in case of automatic continuation.



Copyright ? October 2004 INRIA All Rights Reserved.