ActiveTask¶
-
public interface
ActiveTask
¶ ActiveTask represents a task which can be executed under a separated thread.
Author: Hugo Y. K. Lam
Methods¶
execute¶
getMaxRetries¶
-
public int
getMaxRetries
()¶ Gets the maximum number of retries.
Returns: the maximum number of retries.
getRetryInterval¶
-
public long
getRetryInterval
()¶ Gets the retry interval in milliseconds.
Returns: the retry interval.
isRetryEnabled¶
-
public boolean
isRetryEnabled
()¶ Indicates if retry should be enabled.
Returns: true if retry should be enabled.
isSucceedFast¶
-
public boolean
isSucceedFast
()¶ Indicates if the task should succeed fast. false if this task should be retried depending solely on the indication of isRetryEnabled().
Returns: true if the task should succeed fast. See also:
.isRetryEnabled()