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.DiscardPolicy
metrics
blockingExecutionHandler, logger
Constructor and Description |
---|
ValidationExecutor() |
Modifier and Type | Method and Description |
---|---|
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, setMaximumThreads, shutdown, shutdownNow
createCachedThreadpoolWithMaxSize, createWithFixedPoolSize, createWithMaximumPoolSize, execute, execute, extractThrowable, getActiveTaskCount, getPendingTaskCount, handleOrLog, logExceptionsAfterExecute, maybeExecuteImmediately, maybeResetTraceSessionWrapper, newTaskFor, newTaskFor
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toString
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCompletedTaskCount, getMaximumPoolSize, getMaxTasksQueued
protected void beforeExecute(java.lang.Thread t, java.lang.Runnable r)
beforeExecute
in class DebuggableThreadPoolExecutor
public void afterExecute(java.lang.Runnable r, java.lang.Throwable t)
afterExecute
in class DebuggableThreadPoolExecutor
public 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-2019 The Apache Software Foundation