public class SimpleAsyncTask extends Object implements AsyncTask
| Constructor and Description |
|---|
SimpleAsyncTask(int delay,
TimeUnit delayUnit) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDelay()
Returns the time to wait until executing this task
|
TimeUnit |
getDelayTimeUnit()
Returns the time unit of the delay time
|
long |
getRegisteringTimestamp() |
boolean |
isScheduled()
Returns true if the task was already scheduled.
|
void |
setRegistered(long timestamp)
Sets the task as registered
|
void |
setScheduled()
Sets the task as scheduled
|
void |
setUnscheduled()
Sets the task as not scheduled
|
public SimpleAsyncTask(int delay,
TimeUnit delayUnit)
public void setRegistered(long timestamp)
AsyncTasksetRegistered in interface AsyncTasktimestamp - the timestamp of the moment when the task was registeredpublic long getRegisteringTimestamp()
getRegisteringTimestamp in interface AsyncTaskpublic int getDelay()
AsyncTaskpublic TimeUnit getDelayTimeUnit()
AsyncTaskgetDelayTimeUnit in interface AsyncTaskpublic boolean isScheduled()
AsyncTaskisScheduled in interface AsyncTaskpublic void setUnscheduled()
AsyncTasksetUnscheduled in interface AsyncTaskpublic void setScheduled()
AsyncTasksetScheduled in interface AsyncTaskCopyright © 2018 MuleSoft, Inc.. All rights reserved.