public class PeriodicRunnable<T extends Runnable> extends Object implements Runnable, AutoCloseable
| Constructor and Description |
|---|
PeriodicRunnable(long intervalMillis,
T action) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Thread |
getThread() |
void |
run() |
PeriodicRunnable<T> |
startDaemonThread() |
PeriodicRunnable<T> |
startMainThread() |
public PeriodicRunnable(long intervalMillis,
T action)
public PeriodicRunnable<T> startDaemonThread()
public void close()
close in interface AutoCloseablepublic PeriodicRunnable<T> startMainThread()
public Thread getThread()
Copyright © 2017. All rights reserved.