public class WorkerUtils extends Object
Modifier and Type | Method and Description |
---|---|
static XnioExecutor.Key |
executeAfter(XnioIoThread thread,
Runnable task,
long timeout,
TimeUnit timeUnit)
Schedules a task for future execution.
|
public static XnioExecutor.Key executeAfter(XnioIoThread thread, Runnable task, long timeout, TimeUnit timeUnit)
thread
- The IO threadtask
- The task to executetimeout
- The timeouttimeUnit
- The time unitCopyright © 2020 JBoss by Red Hat. All rights reserved.