|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.util.Alarm
public class Alarm
Utility class used to execute periodical tasks
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.intellij.openapi.Disposable |
|---|
com.intellij.openapi.Disposable.Parent |
| Constructor Summary | |
|---|---|
Alarm(java.lang.String name)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Alarm(@NotNull
java.lang.String name)
| Method Detail |
|---|
public void dispose()
dispose in interface com.intellij.openapi.Disposable
public 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||