Interface Executor

    • Method Detail

      • getName

        java.lang.String getName()
      • execute

        void execute​(java.lang.Runnable command,
                     long timeout,
                     java.util.concurrent.TimeUnit unit)
        Unused. Will be removed in Tomcat 10.1.x onwards.
        Executes the given command at some time in the future. The command may execute in a new thread, in a pooled thread, or in the calling thread, at the discretion of the Executor implementation. If no threads are available, it will be added to the work queue. If the work queue is full, the system will wait for the specified time until it throws a RejectedExecutionException
        command - the runnable task
        timeout - the length of time to wait for the task to complete
        unit - the units in which timeout is expressed
        java.util.concurrent.RejectedExecutionException - if this task cannot be accepted for execution - the queue is full
        java.lang.NullPointerException - if command or unit is null