Package com.sun.jini.mahalo
Class SettlerTask
java.lang.Object
com.sun.jini.thread.RetryTask
com.sun.jini.mahalo.SettlerTask
- All Implemented Interfaces:
TimeConstants,TaskManager.Task,Runnable,TransactionConstants
A
SettlerTask is scheduled task, which causes an unsettled transaction to settle.- Author:
- Sun Microsystems, Inc.
-
Field Summary
Fields inherited from interface com.sun.jini.constants.TimeConstants
DAYS, HOURS, MINUTES, SECONDSFields inherited from interface net.jini.core.transaction.server.TransactionConstants
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTING -
Constructor Summary
ConstructorsConstructorDescriptionSettlerTask(TaskManager manager, WakeupManager wm, TransactionManager txnmgr, Object tid) Constructs aSettlerTask. -
Method Summary
-
Constructor Details
-
SettlerTask
Constructs aSettlerTask.- Parameters:
manager-TaskManagerproviding the threads of execution.txnmgr-TransactionManagerwhich owns the the transaction.tid- transaction ID
-
-
Method Details
-
runAfter
Inherit doc comment from supertype.- Specified by:
runAfterin interfaceTaskManager.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:RetryTaskMake a single attempt. Returntrueif the attempt was successful. If the attempt is not successful, the task will be scheduled for a future retry.
-