Class CompactionManager.ValidationExecutor
- java.lang.Object
-
- org.apache.cassandra.concurrent.WrappedExecutorPlus
-
- org.apache.cassandra.db.compaction.CompactionManager.ValidationExecutor
-
- All Implemented Interfaces:
java.util.concurrent.Executor,java.util.concurrent.ExecutorService,ExecutorPlus,ResizableThreadPool
- Enclosing class:
- CompactionManager
public static class CompactionManager.ValidationExecutor extends WrappedExecutorPlus
-
-
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 Constructor Description ValidationExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustPoolSize()voidexecute(java.lang.Runnable command)Future<?>submit(java.lang.Runnable task)OverridesExecutorService.submit(Runnable)to return a CassandraFuture<T> Future<T>submit(java.lang.Runnable task, T result)OverridesExecutorService.submit(Runnable, Object)to return a CassandraFuture<T> Future<T>submit(java.util.concurrent.Callable<T> task)OverridesExecutorService.submit(Callable)to return a CassandraFutureFuture<java.lang.Void>submitIfRunning(java.lang.Runnable task, java.lang.String name)<T> Future<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.-
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, submit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.concurrent.ResizableThreadPool
oldestTaskQueueTime
-
-
-
-
Method Detail
-
adjustPoolSize
public void adjustPoolSize()
-
submitIfRunning
public Future<java.lang.Void> submitIfRunning(java.lang.Runnable task, java.lang.String name)
-
submitIfRunning
public <T> Future<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.- 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
public void execute(java.lang.Runnable command)
- Specified by:
executein interfacejava.util.concurrent.Executor- Overrides:
executein classWrappedExecutorPlus
-
submit
public <T> Future<T> submit(java.util.concurrent.Callable<T> task)
Description copied from interface:ExecutorPlusOverridesExecutorService.submit(Callable)to return a CassandraFuture- Specified by:
submitin interfaceExecutorPlus- Specified by:
submitin interfacejava.util.concurrent.ExecutorService- Overrides:
submitin classWrappedExecutorPlus
-
submit
public <T> Future<T> submit(java.lang.Runnable task, T result)
Description copied from interface:ExecutorPlusOverridesExecutorService.submit(Runnable, Object)to return a CassandraFuture- Specified by:
submitin interfaceExecutorPlus- Specified by:
submitin interfacejava.util.concurrent.ExecutorService- Overrides:
submitin classWrappedExecutorPlus
-
submit
public Future<?> submit(java.lang.Runnable task)
Description copied from interface:ExecutorPlusOverridesExecutorService.submit(Runnable)to return a CassandraFuture- Specified by:
submitin interfaceExecutorPlus- Specified by:
submitin interfacejava.util.concurrent.ExecutorService- Overrides:
submitin classWrappedExecutorPlus
-
-