Class GeneralTimeoutHandler

java.lang.Object
org.jboss.as.protocol.GeneralTimeoutHandler
All Implemented Interfaces:
ProtocolTimeoutHandler

public class GeneralTimeoutHandler extends Object implements ProtocolTimeoutHandler
A general implementation of ProtocolTimeoutHandler that takes into account the time taken for Runnable tasks to be executed.
Author:
Darran Lofthouse
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeneralTimeoutHandler

      public GeneralTimeoutHandler()
  • Method Details

    • suspendAndExecute

      public void suspendAndExecute(Runnable runnable)
    • await

      public org.xnio.IoFuture.Status await(org.xnio.IoFuture<?> future, long timeoutMillis)
      Description copied from interface: ProtocolTimeoutHandler
      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.
      Specified by:
      await in interface ProtocolTimeoutHandler
      Parameters:
      future - - The IoFuture to wait on.
      timeoutMillis - - The configures timeout in milliseconds.
      Returns:
      The IoFuture.Status when available or at the time the timeout is reached - whichever is soonest.