Package io.undertow.util
Class WorkerUtils
java.lang.Object
io.undertow.util.WorkerUtils
- Author:
- Stuart Douglas
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.xnio.XnioExecutor.Key
executeAfter
(org.xnio.XnioIoThread thread, Runnable task, long timeout, TimeUnit timeUnit) Schedules a task for future execution.
-
Method Details
-
executeAfter
public static org.xnio.XnioExecutor.Key executeAfter(org.xnio.XnioIoThread thread, Runnable task, long timeout, TimeUnit timeUnit) Schedules a task for future execution. If the execution is rejected because the worker is shutting down then it is logged at debug level and the exception is not re-thrown- Parameters:
thread
- The IO threadtask
- The task to executetimeout
- The timeouttimeUnit
- The time unit
-