Interface InternalTimer<K,N>

Type Parameters:
K - Type of the keys to which timers are scoped.
N - Type of the namespace to which timers are scoped.
All Superinterfaces:
Keyed<K>, PriorityComparable<InternalTimer<?,?>>
All Known Implementing Classes:
TimerHeapInternalTimer

@Internal public interface InternalTimer<K,N> extends PriorityComparable<InternalTimer<?,?>>, Keyed<K>
Internal interface for in-flight timers.
  • Field Details

  • Method Details

    • getTimestamp

      long getTimestamp()
      Returns the timestamp of the timer. This value determines the point in time when the timer will fire.
    • getKey

      @Nonnull K getKey()
      Returns the key that is bound to this timer.
      Specified by:
      getKey in interface Keyed<K>
    • getNamespace

      @Nonnull N getNamespace()
      Returns the namespace that is bound to this timer.