edu.vub.at.actors.eventloops
Class FutureEvent
java.lang.Object
edu.vub.at.actors.eventloops.Event
edu.vub.at.actors.eventloops.FutureEvent
- All Implemented Interfaces:
- java.io.Serializable
- public abstract class FutureEvent
- extends Event
A Future Event has an associated Future object to which the event
will pass the return value or exception of a certain computation to be
specified by a subclass.
- Author:
- tvcutsem
- See Also:
- Serialized Form
Fields inherited from class edu.vub.at.actors.eventloops.Event |
|
Method Summary |
abstract java.lang.Object |
execute(java.lang.Object owner)
|
void |
process(java.lang.Object owner)
This method may be invoked by the receiving event loop such that the
event can process itself. |
Methods inherited from class edu.vub.at.actors.eventloops.Event |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
future_
private final Future future_
FutureEvent
public FutureEvent(java.lang.String description,
Future reply)
FutureEvent
public FutureEvent(Future reply)
process
public void process(java.lang.Object owner)
- Description copied from class:
Event
- This method may be invoked by the receiving event loop such that the
event can process itself.
- Specified by:
process
in class Event
- Parameters:
owner
- the object designated by the receiving event loop to be the owner of this event.
execute
public abstract java.lang.Object execute(java.lang.Object owner)
throws java.lang.Exception
- Throws:
java.lang.Exception