Interface Executor

    • Method Detail

      • isOverloaded

        boolean isOverloaded()
        Checks if executor is overloaded. If returns true, then you should not try to submit any new tasks for a while.
        Returns:
        true - executor is overloaded
      • submit

        void submit​(Executor.Priority priority,
                    java.lang.Runnable runnable)
        Submits a task with a priority for execution.
        Parameters:
        priority -
        runnable -