Class GeneralTimeoutHandler

    • Constructor Detail

      • GeneralTimeoutHandler

        public GeneralTimeoutHandler()
    • Method Detail

      • 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.