Interface ExecutionSequencer

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    SingleThreadExecutionSequencer

    public interface ExecutionSequencer
    extends java.lang.AutoCloseable
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void sequence​(java.lang.Runnable runnable)
      Runs the argument asynchronously in an environment that assures the following: - The runnables passed in will be executed one at a time, sequentially.
      • Methods inherited from interface java.lang.AutoCloseable

        close
    • Method Detail

      • sequence

        void sequence​(java.lang.Runnable runnable)
        Runs the argument asynchronously in an environment that assures the following: - The runnables passed in will be executed one at a time, sequentially. - The runnables don't need to concern themselves with synchronization and visibility of the mutable state that they modify if that is accessed only by Runnables that are passed to this method.
        Parameters:
        runnable - Will be executed asynchronously.