Interface IRunnableTask
- All Known Implementing Classes:
URLRetrieveTask
public interface IRunnableTask
Interface implemented by those tasks that can be background-executed,
cancelled or any other thing.
- Author:
- jaume dominguez faus - jaume.dominguez@iver.es
-
Method Details
-
execute
void execute()Executes this task's operations. -
cancel
void cancel()Cancels the current execution, if any, of this task. Should have no effect if the task is not executing anything. -
isRunning
boolean isRunning()Tells if the task is on execution.- Returns:
- true if the task is busy, false otherwise.
-
getTaskTimeout
long getTaskTimeout()Returns the timeout set to this task in milliseconds- Returns:
- the amount of milliseconds to wait until the task will be considered as unsuccessful, or 0 or less to say that task can wait forever.
-