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
|
TimeUnit |
getDelayUnit() |
String |
getId()
return the task id
|
long |
getRegisteringTimestamp() |
boolean |
isScheduled()
Returns true if the task was already scheduled.
|
void |
setDelay(int delay) |
void |
setDelayUnit(TimeUnit delayUnit) |
void |
setId(String id) |
void |
setRegistered(long timestamp)
Sets the task as registered
|
void |
setRegisteringTimestamp(long registeringTimestamp) |
void |
setScheduled()
Sets the task as scheduled
|
void |
setScheduled(boolean 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 AsyncTaskpublic void setDelay(int delay)
public TimeUnit getDelayUnit()
public void setDelayUnit(TimeUnit delayUnit)
public void setScheduled(boolean scheduled)
public void setRegisteringTimestamp(long registeringTimestamp)
public void setId(String id)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.