execute(Runnable task, long startTimeout) Execute the given task.
Parameters: task - the Runnable to execute (never null) Parameters: startTimeout - the time duration within which the task is supposed to start.This is intended as a hint to the executor, allowing for preferred handlingof immediate tasks.
Execute the given task.
Parameters: task - the Runnable to execute (never null) Parameters: startTimeout - the time duration within which the task is supposed to start.This is intended as a hint to the executor, allowing for preferred handlingof immediate tasks. Typical values are AsyncTaskExecutor.TIMEOUT_IMMEDIATE orAsyncTaskExecutor.TIMEOUT_INDEFINITE (the default as used by AsyncTaskExecutor.execute(Runnable)). throws: TaskTimeoutException - in case of the task being rejected becauseof the timeout (i.e. it cannot be started in time) throws: TaskRejectedException - if the given task was not accepted