Class ThreadPoolImpl

java.lang.Object
org.rcsb.strucmotif.core.ThreadPoolImpl
All Implemented Interfaces:
ThreadPool

@Service public class ThreadPoolImpl extends Object implements ThreadPool
Wraps a ForkJoinPool.
  • Constructor Details

    • ThreadPoolImpl

      @Autowired public ThreadPoolImpl(MotifSearchConfig motifSearchConfig)
      Constructor.
      Parameters:
      motifSearchConfig - injectable configuration
  • Method Details

    • submit

      public <R> Future<R> submit(Callable<R> task)
      Description copied from interface: ThreadPool
      Dispatch a Callable.
      Specified by:
      submit in interface ThreadPool
      Type Parameters:
      R - type
      Parameters:
      task - a callable
      Returns:
      a Future aka promise