public abstract class DelayedOperation extends Object
new DelayedOperation() {
// @Override
public void doJob() {
// Here the code...
}
}.start(5000); // the operation will start after 5 secs.
| Constructor and Description |
|---|
DelayedOperation() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doJob() |
void |
loop(int delayMills) |
void |
start(int delayMills) |
Copyright © 2017. All Rights Reserved.