K - Type of the keys to which timers are scoped.N - Type of the namespace to which timers are scoped.@Internal public final class TimerHeapInternalTimer<K,N> extends Object implements InternalTimer<K,N>, org.apache.flink.runtime.state.heap.HeapPriorityQueueElement
InternalTimer to use with a HeapPriorityQueueSet.KEY_EXTRACTOR_FUNCTION, TIMER_COMPARATOR| Constructor and Description |
|---|
TimerHeapInternalTimer(long timestamp,
K key,
N namespace) |
| Modifier and Type | Method and Description |
|---|---|
int |
comparePriorityTo(InternalTimer<?,?> other) |
boolean |
equals(Object o) |
int |
getInternalIndex() |
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.
|
int |
hashCode() |
void |
setInternalIndex(int newIndex) |
String |
toString() |
public long getTimestamp()
InternalTimergetTimestamp in interface InternalTimer<K,N>@Nonnull public K getKey()
InternalTimergetKey in interface org.apache.flink.runtime.state.Keyed<K>getKey in interface InternalTimer<K,N>@Nonnull public N getNamespace()
InternalTimergetNamespace in interface InternalTimer<K,N>public int getInternalIndex()
getInternalIndex in interface org.apache.flink.runtime.state.heap.HeapPriorityQueueElementpublic void setInternalIndex(int newIndex)
setInternalIndex in interface org.apache.flink.runtime.state.heap.HeapPriorityQueueElementpublic int comparePriorityTo(@Nonnull InternalTimer<?,?> other)
comparePriorityTo in interface org.apache.flink.runtime.state.PriorityComparable<InternalTimer<?,?>>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.