public class SreRunnable extends SreExecutable implements Runnable
EarlyExitException
.
See Runnables
for creating an instance.
The behavior of this runnable regarding the exceptions depends on the definition of the logger. If a logger is defined, the exceptions are logged out but never thrown to the Java execution layer. If a logger is not defined, the exceptions are thrown to the Java execution layer.
Runnables
exception
Modifier | Constructor and Description |
---|---|
protected |
SreRunnable(logger : Logger)
Constructor.
|
protected |
SreRunnable(runnable : Runnable,
logger : Logger)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(obj : Object) |
Runnable |
getWrappedRunnable()
Replies the wrapped task.
|
int |
hashCode() |
protected void |
internalRun()
Run the task.
|
void |
run() |
String |
toString() |
exceptionMessage, getException, getLogger, getRootCause, isSuccess, onError, onFinished
protected new
(runnable : Runnable,
logger : Logger)
Runnables
for creating an instance.runnable
- the wrapped task.logger
- the logger to use.@Pure
public def
getWrappedRunnable() : Runnable
SreRunnable
protected def
internalRun() : void
SreRunnable
@Pure
public def
equals(obj : Object) : boolean
equals
in class SreExecutable
@Pure
public def
hashCode() : int
hashCode
in class SreExecutable
Copyright © 2021 the original authors or authors.