Interface QueuePermit

All Known Implementing Classes:
Iterators.LazyFanInPriorityQueue
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface QueuePermit
A functional interface representing a permit for a queue operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases the permit associated with a queue operation.
  • Method Details

    • releasePermit

      void releasePermit()
      Releases the permit associated with a queue operation.

      Implementations of this method should release the permit, allowing other operations to proceed. The exact behavior of releasing a permit may vary depending on the specific queue or synchronization mechanism in use.