
public interface XnioExecutor
extends java.util.concurrent.Executor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XnioExecutor.Key
A task key for a timeout task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable command)
Execute a task in this executor.
|
XnioExecutor.Key |
executeAfter(java.lang.Runnable command,
long time,
java.util.concurrent.TimeUnit unit)
Execute a command after a period of time.
|
void execute(java.lang.Runnable command)
execute in interface java.util.concurrent.Executorcommand - the command to runXnioExecutor.Key executeAfter(java.lang.Runnable command, long time, java.util.concurrent.TimeUnit unit)
time will
have elapsed when the task is run. The returned key may be used to cancel the task before it runs.command - the command to executetime - the amount of time to delay, or 0 to run immediatelyunit - the time unit to apply to timeCopyright © 2010 JBoss, a division of Red Hat, Inc.