public class GeneralTimeoutHandler extends Object implements ProtocolTimeoutHandler
ProtocolTimeoutHandler that takes into account the time taken for Runnable tasks
to be executed.| Constructor and Description |
|---|
GeneralTimeoutHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.xnio.IoFuture.Status |
await(org.xnio.IoFuture<?> future,
long timeoutMillis)
Wait for the specified time on the supplied
IoFuture, taking into account that some of this time could actually
not be related to the establishment of the connection but instead some local task such as user think time. |
void |
suspendAndExecute(Runnable runnable) |
public void suspendAndExecute(Runnable runnable)
public org.xnio.IoFuture.Status await(org.xnio.IoFuture<?> future,
long timeoutMillis)
ProtocolTimeoutHandlerIoFuture, taking into account that some of this time could actually
not be related to the establishment of the connection but instead some local task such as user think time.await in interface ProtocolTimeoutHandlerfuture - - The IoFuture to wait on.timeoutMillis - - The configures timeout in milliseconds.IoFuture.Status when available or at the time the timeout is reached - whichever is soonest.Copyright © 2022 JBoss by Red Hat. All rights reserved.