Class CompactionManager.ValidationExecutor

    • Constructor Detail

      • ValidationExecutor

        public ValidationExecutor()
    • 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 submit
        name - - 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:
        execute in interface java.util.concurrent.Executor
        Overrides:
        execute in class WrappedExecutorPlus
      • submit

        public <T> Future<T> submit​(java.util.concurrent.Callable<T> task)
        Description copied from interface: ExecutorPlus
        Overrides ExecutorService.submit(Callable) to return a Cassandra Future
        Specified by:
        submit in interface ExecutorPlus
        Specified by:
        submit in interface java.util.concurrent.ExecutorService
        Overrides:
        submit in class WrappedExecutorPlus
      • submit

        public <T> Future<T> submit​(java.lang.Runnable task,
                                    T result)
        Description copied from interface: ExecutorPlus
        Overrides ExecutorService.submit(Runnable, Object) to return a Cassandra Future
        Specified by:
        submit in interface ExecutorPlus
        Specified by:
        submit in interface java.util.concurrent.ExecutorService
        Overrides:
        submit in class WrappedExecutorPlus
      • submit

        public Future<?> submit​(java.lang.Runnable task)
        Description copied from interface: ExecutorPlus
        Overrides ExecutorService.submit(Runnable) to return a Cassandra Future
        Specified by:
        submit in interface ExecutorPlus
        Specified by:
        submit in interface java.util.concurrent.ExecutorService
        Overrides:
        submit in class WrappedExecutorPlus