Class LockableConcurrentApproximatePriorityQueue<T extends Lock>

java.lang.Object
org.apache.lucene.index.LockableConcurrentApproximatePriorityQueue<T>

final class LockableConcurrentApproximatePriorityQueue<T extends Lock> extends Object
  • Field Details

  • Constructor Details

    • LockableConcurrentApproximatePriorityQueue

      LockableConcurrentApproximatePriorityQueue(int concurrency)
    • LockableConcurrentApproximatePriorityQueue

      LockableConcurrentApproximatePriorityQueue()
  • Method Details

    • lockAndPoll

      T lockAndPoll()
      Lock an entry, and poll it from the queue, in that order. If no entry can be found and locked, null is returned.
    • remove

      boolean remove(Object o)
      Remove an entry from the queue.
    • contains

      boolean contains(Object o)
    • addAndUnlock

      void addAndUnlock(T entry, long weight)
      Add an entry to the queue and unlock it, in that order.