PriorityQueuePolicy
class PriorityQueuePolicy<T : Any>(initialContents: Collection<T> = emptyList(), comparator: Comparator<T>) : QueuePolicy<T>
Priority queue policy. Entities are dequeued according to a priority order defined by the comparator. Lower priority entities (earlier in the comparator order) are dequeued first.
Parameters
T
the type of entities in the queue
initialContents
the initial entities in the queue
comparator
the Comparator that defines the priority order