Class CompactionManager.ValidationExecutor
java.lang.Object
org.apache.cassandra.concurrent.WrappedExecutorPlus
org.apache.cassandra.db.compaction.CompactionManager.ValidationExecutor
- All Implemented Interfaces:
Executor,ExecutorService,ExecutorPlus,ResizableThreadPool
- Enclosing class:
- CompactionManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.concurrent.ExecutorPlus
ExecutorPlus.MaximumPoolSizeListener -
Field Summary
Fields inherited from class org.apache.cassandra.concurrent.WrappedExecutorPlus
executor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidFuture<?>OverridesExecutorService.submit(Runnable)to return a CassandraFuture<T> Future<T>OverridesExecutorService.submit(Runnable, Object)to return a CassandraFuture<T> Future<T>OverridesExecutorService.submit(Callable)to return a CassandraFuturesubmitIfRunning(Runnable task, String name) <T> Future<T>submitIfRunning(Callable<T> task, 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.Methods inherited from class org.apache.cassandra.concurrent.WrappedExecutorPlus
awaitTermination, execute, getActiveTaskCount, getCompletedTaskCount, getCorePoolSize, getMaximumPoolSize, getMaxTasksQueued, getPendingTaskCount, inExecutor, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, maybeExecuteImmediately, setCorePoolSize, setMaximumPoolSize, shutdown, shutdownNow, submit, submit, submitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.concurrent.ResizableThreadPool
oldestTaskQueueTime
-
Constructor Details
-
ValidationExecutor
public ValidationExecutor()
-
-
Method Details
-
adjustPoolSize
public void adjustPoolSize() -
submitIfRunning
-
submitIfRunning
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.- Parameters:
task- - the task to submitname- - the task name to use in log messages- Returns:
- the future that will deliver the task result, or a future that has already been cancelled if the task could not be submitted.
-
execute
- Specified by:
executein interfaceExecutor- Overrides:
executein classWrappedExecutorPlus
-
submit
Description copied from interface:ExecutorPlusOverridesExecutorService.submit(Callable)to return a CassandraFuture- Specified by:
submitin interfaceExecutorPlus- Specified by:
submitin interfaceExecutorService- Overrides:
submitin classWrappedExecutorPlus
-
submit
Description copied from interface:ExecutorPlusOverridesExecutorService.submit(Runnable, Object)to return a CassandraFuture- Specified by:
submitin interfaceExecutorPlus- Specified by:
submitin interfaceExecutorService- Overrides:
submitin classWrappedExecutorPlus
-
submit
Description copied from interface:ExecutorPlusOverridesExecutorService.submit(Runnable)to return a CassandraFuture- Specified by:
submitin interfaceExecutorPlus- Specified by:
submitin interfaceExecutorService- Overrides:
submitin classWrappedExecutorPlus
-