public class LoggingScheduledExecutor extends ScheduledThreadPoolExecutor
ThreadPoolExecutor.afterExecute(java.lang.Runnable, java.lang.Throwable)
 and ScheduledThreadPoolExecutor.decorateTask(java.lang.Runnable, java.util.concurrent.RunnableScheduledFuture<V>) methods.
 Reasoning is given tasks to ScheduledThreadPoolExecutor stops silently if there is an execution exception.
 Note: Task decoration is only needed to call given tasks toString methods.
 ScheduledExecutorService.scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description | 
|---|
| LoggingScheduledExecutor(ILogger logger,
                        int corePoolSize,
                        ThreadFactory threadFactory) | 
| LoggingScheduledExecutor(ILogger logger,
                        int corePoolSize,
                        ThreadFactory threadFactory,
                        boolean removeOnCancel) | 
| LoggingScheduledExecutor(ILogger logger,
                        int corePoolSize,
                        ThreadFactory threadFactory,
                        boolean removeOnCancel,
                        RejectedExecutionHandler handler) | 
| LoggingScheduledExecutor(ILogger logger,
                        int corePoolSize,
                        ThreadFactory threadFactory,
                        RejectedExecutionHandler handler) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | afterExecute(Runnable runnable,
            Throwable throwable) | 
| protected <V> RunnableScheduledFuture<V> | decorateTask(Callable<V> callable,
            RunnableScheduledFuture<V> task) | 
| protected <V> RunnableScheduledFuture<V> | decorateTask(Runnable runnable,
            RunnableScheduledFuture<V> task) | 
| void | notifyShutdownInitiated() | 
execute, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, shutdown, shutdownNow, submit, submit, submitallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskForclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedpublic LoggingScheduledExecutor(ILogger logger, int corePoolSize, ThreadFactory threadFactory)
public LoggingScheduledExecutor(ILogger logger, int corePoolSize, ThreadFactory threadFactory, boolean removeOnCancel)
public LoggingScheduledExecutor(ILogger logger, int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler)
public LoggingScheduledExecutor(ILogger logger, int corePoolSize, ThreadFactory threadFactory, boolean removeOnCancel, RejectedExecutionHandler handler)
protected <V> RunnableScheduledFuture<V> decorateTask(Runnable runnable, RunnableScheduledFuture<V> task)
decorateTask in class ScheduledThreadPoolExecutorprotected <V> RunnableScheduledFuture<V> decorateTask(Callable<V> callable, RunnableScheduledFuture<V> task)
decorateTask in class ScheduledThreadPoolExecutorprotected void afterExecute(Runnable runnable, Throwable throwable)
afterExecute in class ThreadPoolExecutorpublic void notifyShutdownInitiated()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.