public class ScheduledTask extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected int |
delay |
protected int |
delayTime |
protected boolean |
interrupted |
protected int |
repeatDelay |
protected int |
repeatTime |
protected Runnable |
runnable |
protected long |
taskId |
| Constructor and Description |
|---|
ScheduledTask(long taskId,
Runnable runnable,
int delay,
int repeatDelay) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
int |
getDelay() |
int |
getDelayTime() |
int |
getRepeatDelay() |
int |
getRepeatTime() |
Runnable |
getRunnable() |
long |
getTaskId() |
protected boolean |
isAsync() |
boolean |
isInterrupted() |
void |
run() |
protected long taskId
protected Runnable runnable
protected int delay
protected int repeatDelay
protected boolean interrupted
protected int delayTime
protected int repeatTime
public ScheduledTask(long taskId,
Runnable runnable,
int delay,
int repeatDelay)
public int getDelay()
public int getDelayTime()
public int getRepeatDelay()
public int getRepeatTime()
public long getTaskId()
public Runnable getRunnable()
public boolean isInterrupted()
protected boolean isAsync()
public void cancel()
Copyright © 2020. All rights reserved.