Interface ThreadExecutor

  • All Known Implementing Classes:
    DefaultThreadExecutor, WorkManagerThreadExecutor

    public interface ThreadExecutor
    Allows different strategies for scheduling threads. The initialize() method is required to be called before the first call to execute(Thread). The Thread containing the work to be performed is passed to execute and the work is scheduled by the underlying implementation.
    Author:
    matt.accola
    • Method Detail

      • execute

        void execute​(java.lang.Thread thread)
        Submit a task for execution
        Parameters:
        thread - the thread to execute
      • initialize

        void initialize()
        Initialize any state prior to calling execute(Thread)