K
- Type of the keys to which timers are scoped.N
- Type of the namespace to which timers are scoped.@Internal public interface InternalTimer<K,N> extends PriorityComparable<InternalTimer<?,?>>, Keyed<K>
Modifier and Type | Field and Description |
---|---|
static KeyExtractorFunction<InternalTimer<?,?>> |
KEY_EXTRACTOR_FUNCTION
Function to extract the key from a
InternalTimer . |
static PriorityComparator<InternalTimer<?,?>> |
TIMER_COMPARATOR
Function to compare instances of
InternalTimer . |
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Returns the key that is bound to this timer.
|
N |
getNamespace()
Returns the namespace that is bound to this timer.
|
long |
getTimestamp()
Returns the timestamp of the timer.
|
comparePriorityTo
static final KeyExtractorFunction<InternalTimer<?,?>> KEY_EXTRACTOR_FUNCTION
InternalTimer
.static final PriorityComparator<InternalTimer<?,?>> TIMER_COMPARATOR
InternalTimer
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.