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:
  • Constructor Details

    • 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.
  • Method Details

    • 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:
    • 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