public final class JRebirth extends Object
| Modifier | Constructor and Description |
|---|---|
private |
JRebirth()
Private Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkJAT()
Check if the current code is executed into the JavaFX Application Thread otherwise throws an exception.
|
static void |
checkJIT()
Check if the current code is executed into the JRebirthThread otherwise throws an exception.
|
static void |
checkJTPSlot()
Check if the current code is executed into one slot of the JRebirth Thread Pool otherwise throws an exception.
|
static boolean |
isJAT()
Return true if we are into the JavaFX Application Thread (JAT).
|
static boolean |
isJIT()
Return true if we are into the JRebirth Internal Thread (JIT).
|
static boolean |
isJTPSlot()
Return true if we are into a slot of the thread pool (JTP).
|
static void |
run(RunType runInto,
JRebirthRunnable runnable)
Run the task into the appropriated thread.
|
static void |
runIntoJAT(JRebirthRunnable runnable)
Run the task into the JavaFX Application Thread [JAT].
|
static void |
runIntoJIT(JRebirthRunnable runnable)
Run into the JRebirth Internal Thread [JIT].
|
static void |
runIntoJTP(JRebirthRunnable runnable)
Run into the JRebirth Thread Pool [JTP].
|
public static void run(RunType runInto, JRebirthRunnable runnable)
runInto - the targeted threadrunnable - the task to runpublic static void runIntoJAT(JRebirthRunnable runnable)
runnable - the task to runpublic static void runIntoJIT(JRebirthRunnable runnable)
runnable - the task to runpublic static void runIntoJTP(JRebirthRunnable runnable)
runnable - the task to runpublic static boolean isJAT()
public static boolean isJIT()
public static boolean isJTPSlot()
public static void checkJAT()
throws JRebirthThreadException
JRebirthThreadException - if we are into the wrong threadpublic static void checkJIT()
throws JRebirthThreadException
JRebirthThreadException - if we are into the wrong threadpublic static void checkJTPSlot()
throws JRebirthThreadException
JRebirthThreadException - if we are into the wrong threadCopyright © 2011–2014 JRebirth OSS. All rights reserved.