Class Timeout

java.lang.Object
com.seagullsw.common.toolbox.concurrent.Timeout
com.rs.seagull.emulator.api.Timeout

public class Timeout extends com.seagullsw.common.toolbox.concurrent.Timeout
Timeout represents a timeout value together with its units.
  • Field Summary

    Fields inherited from class com.seagullsw.common.toolbox.concurrent.Timeout

    timeout, units
  • Constructor Summary

    Constructors
    Constructor
    Description
    Timeout(long timeout, TimeUnit units)
    Create a new Timeout.
  • Method Summary

    Methods inherited from class com.seagullsw.common.toolbox.concurrent.Timeout

    days, hours, iso8601, milliseconds, minutes, seconds, toMillis

    Methods inherited from class java.lang.Object

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

    • Timeout

      public Timeout(long timeout, TimeUnit units)
      Create a new Timeout.
      Parameters:
      timeout - the unit-less timeout value
      units - the unit of the timeout value