io.sarl.sre.janus.services.executor
Class AbstractLoggingThreadExecutorPolicy
All Superinterfaces:
java.lang.Thread.UncaughtExceptionHandler, java.util.concurrent.RejectedExecutionHandler
All Known Subclasses:
VerboseThreadExecutorPolicy
@javax.inject.Singleton
abstract class AbstractLoggingThreadExecutorPolicy
extends AbstractThreadExecutorPolicy
A handler for rejected tasks that log a warning on the platform logger.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Field Summary
Modifier and type Field and description
protected val java.util.logging.Logger logger
Constructor Summary
Constructor and description
new(Logger)
Action Summary
Modifier and type Action and description
protected final void log(Throwable,String,String)
Log the given error.
Field Details
logger
protected val logger : java.util.logging.Logger
Constructor Details
new(Logger)
new(Logger)
Parameters:
logger - the logging service that must be used for output the errors.
Action Details
log(Throwable,String,String)
protected def log(Throwable,String,String)
Log the given error.
Parameters:
exception - the error.
taskId - the identifier of the task.
taskName - the name of the task.