public final class StartupCountdown extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StartupCountdown.Frame |
| Constructor and Description |
|---|
StartupCountdown(int count) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(Runnable callback)
Executes a lightweight action when the countdown reaches 0.
|
void |
await() |
void |
countDown() |
void |
countUp(int count) |
static StartupCountdown.Frame |
current() |
StartupCountdown.Frame |
enter() |
boolean |
isPrivileged() |
static void |
restore(StartupCountdown.Frame frame) |
public void countDown()
public void countUp(int count)
public void await()
throws InterruptedException
InterruptedExceptionpublic void addCallback(Runnable callback)
callback - to execute. Should not be null.public boolean isPrivileged()
public StartupCountdown.Frame enter()
public static StartupCountdown.Frame current()
public static void restore(StartupCountdown.Frame frame)
Copyright © 2020 JBoss by Red Hat. All rights reserved.