org.gcube.resourcemanagement.support.shared.util
Class DelayedOperation
java.lang.Object
org.gcube.resourcemanagement.support.shared.util.DelayedOperation
public abstract class DelayedOperation
- extends Object
Performs a delayed action on client side.
Usage:
new DelayedOperation() {
// @Override
public void doJob() {
// Here the code...
}
}.start(5000); // the operation will start after 5 secs.
- Author:
- Daniele Strollo (ISTI-CNR)
Method Summary |
abstract void |
doJob()
|
void |
loop(int delayMills)
|
void |
start(int delayMills)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelayedOperation
public DelayedOperation()
start
public final void start(int delayMills)
loop
public final void loop(int delayMills)
doJob
public abstract void doJob()
Copyright © 2013. All Rights Reserved.