Interface ExecutionStrategy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ExecutionStrategy.Producer
      A producer of Runnable tasks to run.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispatch()
      Initiates (or resumes) the task production and consumption.
      void produce()
      Initiates (or resumes) the task production and consumption.
    • Method Detail

      • dispatch

        void dispatch()

        Initiates (or resumes) the task production and consumption.

        This method guarantees that the task is never run by the thread that called this method.

        TODO review the need for this (only used by HTTP2 push)
        See Also:
        produce()
      • produce

        void produce()

        Initiates (or resumes) the task production and consumption.

        The produced task may be run by the same thread that called this method.

        See Also:
        dispatch()