public class Alarm
extends java.lang.Object
implements com.intellij.openapi.Disposable
| Constructor and Description |
|---|
Alarm(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRepeatableRequest(java.lang.Runnable toRun,
long delay,
long repeatDelay)
Adds repeatable request to the alarm
|
void |
addRequest(java.lang.Runnable toRun,
long delay,
boolean repeatable)
Adds request to the alarm
|
void |
cancelAllRequests()
Cancels all requests added to this alarm
|
void |
cancelRequest(java.lang.Runnable request)
Cancels specific request added to the alarm
|
void |
dispose()
Disposes this alarm
|
boolean |
hasRequests()
Returns true if there are requests added to the alarm
|
public void dispose()
dispose in interface com.intellij.openapi.Disposablepublic void addRepeatableRequest(java.lang.Runnable toRun,
long delay,
long repeatDelay)
toRun - runnable to executedelay - delay before the first start of the runnable (millis)repeatDelay - repeat delay (millis)public void addRequest(java.lang.Runnable toRun,
long delay,
boolean repeatable)
toRun - runnable to executedelay - delay before the first start of the runnable (millis)repeatable - if true then request will be repeatable, same as: addRepeatableRequest(toRun, delay, delay)public void cancelAllRequests()
public void cancelRequest(java.lang.Runnable request)
request - runnablepublic boolean hasRequests()