Interface IRunnableQueue

All Known Subinterfaces:
IEngine
All Known Implementing Classes:
Engine

public interface IRunnableQueue
Defines the contract of the asynchronous runnable queue.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IRunnableQueue
    Runnable queue with the immediate execution of runnables.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Queues the runnable for execution and waits for its completion.
    void
    Queues the runnable for execution.
  • Field Details

    • IMMEDIATE

      static final IRunnableQueue IMMEDIATE
      Runnable queue with the immediate execution of runnables.
  • Method Details

    • queueRunnable

      void queueRunnable(Runnable runnable)
      Queues the runnable for execution.
      Parameters:
      runnable - the runnable to queue.
      See Also:
    • queueAndWaitRunnable

      void queueAndWaitRunnable(Runnable runnable)
      Queues the runnable for execution and waits for its completion. The runnables queued during the passed runnable execution are also executed before this method returns. Typically, runnables created as a result of the user interaction with the UI should be executed synchronously using this method.
      Parameters:
      runnable - the runnable to queue and wait for.
      See Also: