public abstract class AbstractJrbRunnable extends Object implements JRebirthRunnable, ConcurrentMessages
| Modifier and Type | Field and Description |
|---|---|
private long |
creationTime
The creation timestamp in milliseconds.
|
private static JRLogger |
LOGGER
The class logger.
|
private RunnablePriority |
priority
The runnable priority.
|
private String |
runnableName
This name is used for debug purpose.
|
BOOT_UP_ERROR, FUTURE_DONE, HPTP_QUEUED, JIT_ERROR, JTP_ERROR, JTP_ERROR_EXPLANATION, JTP_QUEUED, RUN_IT, SHUTDOWN_ERROR, THREAD_ERROR| Constructor and Description |
|---|
AbstractJrbRunnable(String runnableName)
Default Constructor.
|
AbstractJrbRunnable(String runnableName,
RunnablePriority priority)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCreationTime()
Return the creation time.
|
RunnablePriority |
getPriority()
Return the runnable priority.
|
void |
run() |
protected abstract void |
runInto()
Run task and allow to throw a JRebirthException.
|
String |
toString() |
private static final JRLogger LOGGER
private final String runnableName
private final RunnablePriority priority
private final long creationTime
public AbstractJrbRunnable(String runnableName)
runnableName - the name of the runnable to allow live debuggingpublic AbstractJrbRunnable(String runnableName, RunnablePriority priority)
runnableName - the name of the runnable to allow live debuggingpriority - the runnable priorityprotected abstract void runInto()
throws JRebirthThreadException
JRebirthThreadException - it thread errorpublic RunnablePriority getPriority()
getPriority in interface JRebirthRunnablepublic long getCreationTime()
getCreationTime in interface JRebirthRunnableCopyright © 2011–2014 JRebirth OSS. All rights reserved.