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
public class ParticipantTask
- extends RetryTask
A ParticipantTask is a general task which
interacts with a participant.
- Author:
- Sun Microsystems, Inc.
- See Also:
TransactionParticipant,
TaskManager
|
Method Summary |
boolean |
runAfter(List list,
int max)
Inherit doc comment from supertype. |
boolean |
tryOnce()
Make a single attempt. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParticipantTask
public ParticipantTask(TaskManager manager,
WakeupManager wm,
Job myjob,
com.sun.jini.mahalo.ParticipantHandle handle)
- Constructs a
ParticipantTask.
- Parameters:
manager - TaskManager providing the threads
of execution.myjob - Job to which this task belongs.handle - ParticipantHandle representing the
TransactionParticipant with which
this task interacts.
runAfter
public boolean runAfter(List list,
int max)
- 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:
RetryTask
tryOnce
public boolean tryOnce()
- Description copied from class:
RetryTask
- Make a single attempt. Return
true if the attempt
was successful. If the attempt is not successful, the task
will be scheduled for a future retry.
- Specified by:
tryOnce in class RetryTask
Copyright © GigaSpaces.