public static final class EventHandler.TimeoutAction extends Object
Modifier and Type | Method and Description |
---|---|
static EventHandler.TimeoutAction |
abort()
Creates a
EventHandler.TimeoutAction to indicate aborting the application. |
long |
getTimeout()
Returns timeout in milliseconds or
-1 if to abort the application. |
static EventHandler.TimeoutAction |
recheck(long elapse,
TimeUnit unit)
Creates a
EventHandler.TimeoutAction to indicate recheck again after the given time has passed. |
public static EventHandler.TimeoutAction abort()
EventHandler.TimeoutAction
to indicate aborting the application.public static EventHandler.TimeoutAction recheck(long elapse, TimeUnit unit)
EventHandler.TimeoutAction
to indicate recheck again after the given time has passed.elapse
- Time to elapse before checking for the timeout again.unit
- Unit of the elapse time.public long getTimeout()
-1
if to abort the application.Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.