Package com.sun.jini.mahalo
Class ParticipantTask
java.lang.Object
com.sun.jini.thread.RetryTask
com.sun.jini.mahalo.ParticipantTask
- All Implemented Interfaces:
TimeConstants,TaskManager.Task,Runnable
A
ParticipantTask is a general task which interacts with a participant.- Author:
- Sun Microsystems, Inc.
- See Also:
-
Field Summary
Fields inherited from interface com.sun.jini.constants.TimeConstants
DAYS, HOURS, MINUTES, SECONDS -
Constructor Summary
ConstructorsConstructorDescriptionParticipantTask(TaskManager manager, WakeupManager wm, Job myjob, com.sun.jini.mahalo.ParticipantHandle handle) Constructs aParticipantTask. -
Method Summary
-
Constructor Details
-
ParticipantTask
public ParticipantTask(TaskManager manager, WakeupManager wm, Job myjob, com.sun.jini.mahalo.ParticipantHandle handle) Constructs aParticipantTask.- Parameters:
manager-TaskManagerproviding the threads of execution.myjob-Jobto which this task belongs.handle-ParticipantHandlerepresenting theTransactionParticipantwith which this task interacts.
-
-
Method Details
-
runAfter
Inherit doc comment from supertype.- Parameters:
list- the tasks to consider. A read-only List, with all elements instanceof Task.max- elements with index less than size should be considered- See Also:
-
tryOnce
public boolean tryOnce()Description copied from class:RetryTaskMake a single attempt. Returntrueif the attempt was successful. If the attempt is not successful, the task will be scheduled for a future retry.
-