public interface Timer
Modifier and Type | Interface and Description |
---|---|
static class |
Timer.SchedulingType |
Modifier and Type | Method and Description |
---|---|
void |
setAction(Runnable action) |
void |
setDelay(long period) |
void |
setInitialDelay(long initialDelay) |
void |
setSchedulingType(Timer.SchedulingType schedulingType) |
void |
setTimeUnit(TimeUnit timeUnit) |
void |
start() |
void |
stop() |
void start()
void stop()
void setAction(Runnable action)
void setInitialDelay(long initialDelay)
void setDelay(long period)
void setSchedulingType(Timer.SchedulingType schedulingType)
void setTimeUnit(TimeUnit timeUnit)
Copyright © 2016. All rights reserved.