Interface HeapPriorityQueueElement

All Known Implementing Classes:
AbstractHeapPriorityQueueElement, SourceCoordinator.WatermarkElement, TimerHeapInternalTimer

@Internal public interface HeapPriorityQueueElement
Interface for objects that can be managed by a HeapPriorityQueue. Such an object can only be contained in at most one HeapPriorityQueue at a time.
  • Field Details

  • Method Details

    • getInternalIndex

      int getInternalIndex()
      Returns the current index of this object in the internal array of HeapPriorityQueue.
    • setInternalIndex

      void setInternalIndex(int newIndex)
      Sets the current index of this object in the HeapPriorityQueue and should only be called by the owning HeapPriorityQueue.
      Parameters:
      newIndex - the new index in the timer heap.