public abstract class AbstractJrbRunnable extends Object implements JRebirthRunnable, ConcurrentMessages
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,
PriorityLevel priority)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
Instant |
creationTime()
Return the creation time.
|
PriorityLevel |
priority()
Return the runnable priority.
|
void |
run() |
protected abstract void |
runInto()
Run task and allow to throw a JRebirthException.
|
String |
toString() |
public AbstractJrbRunnable(String runnableName)
runnableName
- the name of the runnable to allow live debuggingpublic AbstractJrbRunnable(String runnableName, PriorityLevel priority)
runnableName
- the name of the runnable to allow live debuggingpriority
- the runnable priorityprotected abstract void runInto() throws JRebirthThreadException
JRebirthThreadException
- it thread errorpublic PriorityLevel priority()
priority
in interface JRebirthRunnable
public Instant creationTime()
creationTime
in interface JRebirthRunnable
Copyright © 2011–2016 JRebirth OSS. All rights reserved.