Class TimeSpec

    • Field Detail

      • DEFAULT_KEEPALIVE

        public static final TimeSpec DEFAULT_KEEPALIVE
    • Constructor Detail

      • TimeSpec

        public TimeSpec​(TimeUnit unit,
                        long duration)
        Construct a new instance.
        Parameters:
        unit - the unit of time
        duration - the quantity of units
    • Method Detail

      • getUnit

        public TimeUnit getUnit()
        Get the time unit.
        Returns:
        the time unit
      • getDuration

        public long getDuration()
        Get the duration.
        Returns:
        the duration
      • elementHash

        public long elementHash()
      • equals

        public boolean equals​(TimeSpec obj)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object