public static class CompactionManager.ValidationExecutor extends JMXEnabledThreadPoolExecutor
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicyLocalAwareExecutorService.MaximumPoolSizeListenermetricsblockingExecutionHandler, logger| Constructor and Description |
|---|
ValidationExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustPoolSize() |
void |
afterExecute(java.lang.Runnable r,
java.lang.Throwable t) |
protected void |
beforeExecute(java.lang.Thread t,
java.lang.Runnable r) |
<T> com.google.common.util.concurrent.ListenableFuture<T> |
submitIfRunning(java.util.concurrent.Callable<T> task,
java.lang.String name)
Submit the task but only if the executor has not been shutdown.If the executor has
been shutdown, or in case of a rejected execution exception return a cancelled future.
|
com.google.common.util.concurrent.ListenableFuture<?> |
submitIfRunning(java.lang.Runnable task,
java.lang.String name) |
getCoreThreads, getCurrentlyBlockedTasks, getMaximumThreads, getTotalBlockedTasks, onFinalAccept, onFinalRejection, onInitialRejection, setCoreThreads, setMaximumPoolSize, setMaximumThreads, shutdown, shutdownNowcreateCachedThreadpoolWithMaxSize, createWithFixedPoolSize, createWithMaximumPoolSize, execute, execute, extractThrowable, getActiveTaskCount, getPendingTaskCount, handleOrLog, logExceptionsAfterExecute, maybeExecuteImmediately, maybeResetTraceSessionWrapper, newTaskFor, newTaskForallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setRejectedExecutionHandler, setThreadFactory, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submitclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCorePoolSize, getMaximumPoolSize, setCorePoolSizegetCompletedTaskCount, getMaxTasksQueuedpublic void adjustPoolSize()
protected void beforeExecute(java.lang.Thread t,
java.lang.Runnable r)
beforeExecute in class DebuggableThreadPoolExecutorpublic void afterExecute(java.lang.Runnable r,
java.lang.Throwable t)
afterExecute in class DebuggableThreadPoolExecutorpublic com.google.common.util.concurrent.ListenableFuture<?> submitIfRunning(java.lang.Runnable task,
java.lang.String name)
public <T> com.google.common.util.concurrent.ListenableFuture<T> submitIfRunning(java.util.concurrent.Callable<T> task,
java.lang.String name)
task - - the task to submitname - - the task name to use in log messagesCopyright © 2009-2020 The Apache Software Foundation