public final class JRebirthThread extends Thread implements ConcurrentMessages
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static String |
JIT_NAME
The JRebirth Internal Thread name [JIT].
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
BOOT_UP_ERROR, FUTURE_DONE, HPTP_QUEUED, JIT_ERROR, JTP_ERROR, JTP_ERROR_EXPLANATION, JTP_QUEUED, RUN_IT, SHUTDOWN_ERROR, THREAD_ERROR
Modifier and Type | Method and Description |
---|---|
void |
bootUp()
Attach the first view and run pre and post command.
|
void |
close()
This method can be called a lot of time while application is running.
|
JRebirthApplication<?> |
getApplication() |
GlobalFacade |
getFacade() |
protected Wave |
getLaunchFirstViewWave()
Launch the first view by adding it into the root node.
|
static JRebirthThread |
getThread()
Return the JRebirthThread used to manage facades and waves.
|
boolean |
hasStarted()
Return true if JRebirth has been correctly started (boot action is done).
|
void |
interrupt() |
void |
prepare(JRebirthApplication<?> application)
Launch the JRebirth thread.
|
void |
run() |
void |
runIntoJTP(JRebirthRunnable runnable)
Run into thread pool.
|
void |
runLater(JRebirthRunnable runnable)
Run this task as soon as possible.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final String JIT_NAME
public void runIntoJTP(JRebirthRunnable runnable)
runnable
- the task to runpublic void runLater(JRebirthRunnable runnable)
runnable
- the task to runpublic void prepare(JRebirthApplication<?> application)
application
- the javaFX application instancepublic boolean hasStarted()
public void bootUp() throws JRebirthThreadException
JRebirthThreadException
- if a problem occurred while calling the commandpublic void close()
protected Wave getLaunchFirstViewWave()
public JRebirthApplication<?> getApplication()
public GlobalFacade getFacade()
public static JRebirthThread getThread()
Copyright © 2011–2016 JRebirth OSS. All rights reserved.