Top Constructors Methods
io.undertow.util

public Class WorkerUtils

extends Object
Class Inheritance
Imports
java.util.concurrent.RejectedExecutionException, .TimeUnit, org.xnio.XnioExecutor, .XnioIoThread, io.undertow.UndertowLogger

Author
Stuart Douglas

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static XnioExecutor.Key
executeAfter(XnioIoThread
The IO thread
thread
,
Runnable
The task to execute
task
,
long
The timeout
timeout
,
TimeUnit
The time unit
timeUnit
)

Schedules a task for future execution.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WorkerUtilsback to summary
private WorkerUtils()

Method Detail

executeAfterback to summary
public static XnioExecutor.Key executeAfter(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:XnioIoThread

The IO thread

task:Runnable

The task to execute

timeout:long

The timeout

timeUnit:TimeUnit

The time unit