public abstract class InterruptibleTask extends Object
Timer
that is canceled if a new request is made.Constructor and Description |
---|
InterruptibleTask()
Creates a new delayed task.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the task.
|
void |
delay(int delay)
Cancels any running timers and starts a new one.
|
abstract void |
onExecute()
Called when the task should execute.
|
public InterruptibleTask()
Copyright © 2018. All rights reserved.