Class TimeoutService.TimeoutToken

  • All Implemented Interfaces:
    java.lang.Comparable
    Enclosing class:
    TimeoutService

    public static class TimeoutService.TimeoutToken
    extends java.lang.Object
    implements java.lang.Comparable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Runnable handler  
      private long runTime  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TimeoutToken​(long runTime, java.lang.Runnable handler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object o)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • runTime

        private long runTime
      • handler

        private java.lang.Runnable handler
    • Constructor Detail

      • TimeoutToken

        private TimeoutToken​(long runTime,
                             java.lang.Runnable handler)
    • Method Detail

      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable