| Modifier and Type | Class and Description |
|---|---|
| public static interface | XnioExecutor.
A task key for a timeout task. |
| Modifier and Type | Method and Description |
|---|---|
| public void | execute(Runnable
the command to run command)Redeclares java. Execute a task in this executor. |
| public XnioExecutor. | Returns: a key which may be used to cancel this task before it executesthe command to execute command, long the amount of time to delay, or time, TimeUnit 0 to run immediatelythe time unit to apply to unit)timeExecute a command after a period of time. |
| public XnioExecutor. | Returns: a key which may be used to cancel this task before it executesthe command to execute command, long the amount of time to delay, or time, TimeUnit 0 to run immediatelythe time unit to apply to unit)timeExecute a command repeatedly at a time interval until it is cancelled. |
| execute | back to summary |
|---|---|
| public void execute(Runnable command) Redeclares java. Execute a task in this executor.
| |
| executeAfter | back to summary |
|---|---|
| public XnioExecutor. Execute a command after a period of time. At least the amount of time given in
| |
| executeAtInterval | back to summary |
|---|---|
| public XnioExecutor. Execute a command repeatedly at a time interval until it is cancelled. At least the amount of time given in
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final XnioExecutor. | IMMEDIATE
An immediate key. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the task was cancelled; false if it already ranRemove a previously-submitted task. |
| IMMEDIATE | back to summary |
|---|---|
| public static final XnioExecutor. An immediate key. When the time delay is <= 0, this may be returned and the task immediately run. | |
| remove | back to summary |
|---|---|
| public boolean remove() Remove a previously-submitted task.
| |