io.sarl.sre.janus.services.executor.tasks
Class SreCallable<T>
Type Parameters:
T - the type of the result.
All Superinterfaces:
java.util.concurrent.Callable<V>
@org.eclipse.xtext.xbase.lib.XbaseGenerated
class SreCallable<T>
extends SreExecutable
implements java.util.concurrent.Callable<V>
A specific SRE callable that is catching the 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.
Parameters:
<T> - the type of the result.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.6
See:
Runnables
Property Summary
Modifier and type Property and description
java.util.concurrent.Callable<V> wrappedCallable
Replies the wrapped task.
Inherited: exception, logger
Field Summary
Inherited: exception
Constructor Summary
Constructor and description
new(Logger)
new(Callable<V>,Logger)
Constructor.
Action Summary
Modifier and type Action and description
final T call
boolean equals(Object)
java.util.concurrent.Callable<V> getWrappedCallable
Replies the wrapped task.
int hashCode
protected T internalCall
Run the task.
java.lang.String toString
Property Details
wrappedCallable
val wrappedCallable : java.util.concurrent.Callable<V>
Replies the wrapped task.

This property is an alias for the action: getWrappedCallable

Returns:
the callable.
Constructor Details
new(Logger)
new(Logger)
Parameters:
logger - the logger to use.
new(Callable<V>,Logger)
protected new(Callable<V>,Logger)
Constructor. See Runnables for creating an instance.
Parameters:
callable - the wrapped task.
logger - the logger to use.
Action Details
call
def call : T
equals(Object)
def equals(Object) : boolean
getWrappedCallable
def getWrappedCallable : java.util.concurrent.Callable<V>
Replies the wrapped task.
Returns:
the callable.
hashCode
def hashCode : int
internalCall
protected def internalCall : T
Run the task. The default implementation runs the attached Runnable.
Returns:
the result of the computation
toString
def toString : java.lang.String