Package org.jboss.as.protocol
Interface ProtocolTimeoutHandler
-
- All Known Implementing Classes:
GeneralTimeoutHandler
public interface ProtocolTimeoutHandlerAn implementation of this interface can be provided by calling clients where they wish to supply their own implementation to handle timeouts whilst establishing a connection. The general purpose of this is for clients that wish to take into account additional factors during connection such as user think time / value entry.- Author:
- Darran Lofthouse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.xnio.IoFuture.Statusawait(org.xnio.IoFuture<?> future, long timeoutMillis)Wait for the specified time on the suppliedIoFuture, 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.
-
-
-
Method Detail
-
await
org.xnio.IoFuture.Status await(org.xnio.IoFuture<?> future, long timeoutMillis)Wait for the specified time on the suppliedIoFuture, 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.- Parameters:
future- - TheIoFutureto wait on.timeoutMillis- - The configures timeout in milliseconds.- Returns:
- The
IoFuture.Statuswhen available or at the time the timeout is reached - whichever is soonest.
-
-