Class SettlerTask

java.lang.Object
com.sun.jini.thread.RetryTask
com.sun.jini.mahalo.SettlerTask
All Implemented Interfaces:
TimeConstants, TaskManager.Task, Runnable, TransactionConstants

public class SettlerTask extends RetryTask implements TransactionConstants
A SettlerTask is scheduled task, which causes an unsettled transaction to settle.
Author:
Sun Microsystems, Inc.
  • Constructor Details

    • SettlerTask

      public SettlerTask(TaskManager manager, WakeupManager wm, TransactionManager txnmgr, Object tid)
      Constructs a SettlerTask.
      Parameters:
      manager - TaskManager providing the threads of execution.
      txnmgr - TransactionManager which owns the the transaction.
      tid - transaction ID
  • Method Details

    • runAfter

      public boolean runAfter(List list, int max)
      Inherit doc comment from supertype.
      Specified by:
      runAfter in interface TaskManager.Task
      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