XNIO API 3.0.4.GA

org.xnio
Interface XnioExecutor.Key

Enclosing interface:
XnioExecutor

public static interface XnioExecutor.Key

A task key for a timeout task.


Field Summary
static XnioExecutor.Key IMMEDIATE
          An immediate key.
 
Method Summary
 boolean remove()
          Remove a previously-submitted task.
 

Field Detail

IMMEDIATE

static final XnioExecutor.Key IMMEDIATE
An immediate key. When the time delay is <= 0, this may be returned and the task immediately run.

Method Detail

remove

boolean remove()
Remove a previously-submitted task.

Returns:
true if the task was cancelled; false if it already ran

XNIO API 3.0.4.GA

Copyright © 2010 JBoss, a division of Red Hat, Inc.