Interface OperationInitializer

All Known Implementing Classes:
ForkJoinPoolOperationInitializer, OperationInitializationThreadPool, PoisonedOperationInitializer

public interface OperationInitializer
Provides guidance for initialization operations on how they can parallelize.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the current thread can parallelize operations using this OperationInitialization.
    int
    Number of threads that are potentially available.
    submit(Runnable runnable)
    Submits a task to run in this thread pool.
  • Field Details

  • Method Details

    • canParallelize

      boolean canParallelize()
      Whether the current thread can parallelize operations using this OperationInitialization.
    • submit

      Future<?> submit(Runnable runnable)
      Submits a task to run in this thread pool.
    • parallelismFactor

      int parallelismFactor()
      Number of threads that are potentially available.