io.sarl.sre.janus.services.executor
Class SreRunnable
All Superinterfaces:
java.lang.Runnable
class SreRunnable
extends SreExecutable
implements java.lang.Runnable
A specific SRE runnable that is catching the 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.
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.lang.Runnable wrappedRunnable
Replies the wrapped task.
Inherited: exception, logger
Field Summary
Inherited: exception
Constructor Summary
Constructor and description
new(Logger)
Constructor.
new(Runnable,Logger)
Constructor.
Action Summary
Modifier and type Action and description
boolean equals(Object)
java.lang.Runnable getWrappedRunnable
Replies the wrapped task.
int hashCode
protected void internalRun
Run the task.
final void run
java.lang.String toString
Property Details
wrappedRunnable
val wrappedRunnable : java.lang.Runnable
Replies the wrapped task.

This property is an alias for the action: getWrappedRunnable

Returns:
the runnable.
Constructor Details
new(Logger)
protected new(Logger)
Constructor. See Runnables for creating an instance.
Parameters:
logger - the logger to use.
new(Runnable,Logger)
protected new(Runnable,Logger)
Constructor. See Runnables for creating an instance.
Parameters:
runnable - the wrapped task.
logger - the logger to use.
Action Details
equals(Object)
def equals(Object) : boolean
getWrappedRunnable
def getWrappedRunnable : java.lang.Runnable
Replies the wrapped task.
Returns:
the runnable.
hashCode
def hashCode : int
internalRun
protected def internalRun
Run the task. The default implementation runs the attached Runnable.
run
def run
toString
def toString : java.lang.String