Class BackgroundInitializer.InitializationTask

java.lang.Object
org.apache.commons.lang3.concurrent.BackgroundInitializer.InitializationTask
All Implemented Interfaces:
Callable<T>
Enclosing class:
BackgroundInitializer<T>

private class BackgroundInitializer.InitializationTask extends Object implements Callable<T>
  • Field Details

    • execFinally

      private final ExecutorService execFinally
      Stores the executor service to be destroyed at the end.
  • Constructor Details

    • InitializationTask

      InitializationTask(ExecutorService exec)
      Creates a new instance of InitializationTask and initializes it with the ExecutorService to be destroyed at the end.
      Parameters:
      exec - the ExecutorService
  • Method Details

    • call

      public T call() throws Exception
      Initiates initialization and returns the result.
      Specified by:
      call in interface Callable<T>
      Returns:
      the result object
      Throws:
      Exception - if an error occurs