Class DelayedMessage

java.lang.Object
com.codinglitch.simpleradio.radio.DelayedMessage
All Implemented Interfaces:
Comparable<Delayed>, Delayed

public class DelayedMessage extends Object implements Delayed
  • Field Details

    • message

      public final Message message
    • destination

      public final Router destination
  • Method Details

    • getDelay

      public long getDelay(TimeUnit unit)
      Specified by:
      getDelay in interface Delayed
    • secondsLeft

      public float secondsLeft()
      Gets the amount of time left in seconds.
      Returns:
      The time left
    • timeLeft

      public long timeLeft()
      Gets the amount of time left in milliseconds.
      Returns:
      The time left
    • compareTo

      public int compareTo(Delayed o)
      Specified by:
      compareTo in interface Comparable<Delayed>