io.sarl.sre.janus.services.executor.policies
Class VerboseThreadExecutorPolicy
All Superinterfaces:
java.lang.Thread.UncaughtExceptionHandler, java.util.concurrent.RejectedExecutionHandler
@javax.inject.Singleton
@org.eclipse.xtext.xbase.lib.XbaseGenerated
class VerboseThreadExecutorPolicy
extends AbstractLoggingThreadExecutorPolicy
A handler for rejected tasks and uncaught exceptions that logs a warning on the platform logger when a task is rejected, and an error for each uncaught exception.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
See:
java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy
Field Summary
Inherited: logger
Action Summary
Modifier and type Action and description
void rejectedExecution(Runnable,ThreadPoolExecutor)
void uncaughtException(Thread,Throwable)
Action Details
rejectedExecution(Runnable,ThreadPoolExecutor)
def rejectedExecution(Runnable,ThreadPoolExecutor)
uncaughtException(Thread,Throwable)
def uncaughtException(Thread,Throwable)