com.sun.sgs.service.task
Interface ContinuePolicy

All Known Implementing Classes:
FixedTimeContinuePolicy

public interface ContinuePolicy

This interface is used to define a pluggable continuation policy for TaskService implementations when the TaskManager.shouldContinue() method is called. All implementations must define a constructor of the form (Properties, ComponentRegistry, TransactionProxy)


Method Summary
 boolean shouldContinue()
          Returns true if the currently running task should do more work if it is available.
 

Method Detail

shouldContinue

boolean shouldContinue()
Returns true if the currently running task should do more work if it is available. Otherwise, returns false. This method should only be called from a transactional context.

Returns:
true if the currently running task should do more work if possible; otherwise false
Throws:
TransactionException - if the operation failed because of a problem with the current transaction
See Also:
TaskManager.shouldContinue()

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved