T
- the type of the result.public class SreCallable<T> extends SreExecutable implements Callable<T>
EarlyExitException
.
See Runnables
for creating an instance.
The behavior of this callable 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 |
SreCallable(callable : Callable<T>,
logger : Logger)
Constructor.
|
|
SreCallable(logger : Logger) |
Modifier and Type | Method and Description |
---|---|
T |
call() |
boolean |
equals(obj : Object) |
Callable<T> |
getWrappedCallable()
Replies the wrapped task.
|
int |
hashCode() |
protected T |
internalCall()
Run the task.
|
String |
toString() |
exceptionMessage, getException, getLogger, getRootCause, isSuccess, onError, onFinished
protected new
(callable : Callable<T>,
logger : Logger)
Runnables
for creating an instance.callable
- the wrapped task.logger
- the logger to use.public new
(logger : Logger)
logger
- the logger to use.@Pure
public def
getWrappedCallable() : Callable<T>
SreCallable
protected def
internalCall() : T
SreCallable
@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.