Class Timers.Timeout

  • All Implemented Interfaces:
    java.lang.Comparable<Timers.Timeout>
    Enclosing class:
    Timers

    private static final class Timers.Timeout
    extends java.lang.Object
    implements java.lang.Comparable<Timers.Timeout>
    An object to go on the priority queue.

    Note: this class has a natural ordering that is inconsistent with equals.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long expiration  
      (package private) Function func  
      (package private) java.lang.Object[] funcArgs  
      (package private) int id  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Timeout()  
    • Field Detail

      • id

        int id
      • funcArgs

        java.lang.Object[] funcArgs
      • expiration

        long expiration
    • Constructor Detail

      • Timeout

        private Timeout()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object