Class WfPriorityQueue

  • All Implemented Interfaces:
    java.lang.Iterable<Workflow<?>>, java.util.Collection<Workflow<?>>, java.util.Queue<Workflow<?>>

    public class WfPriorityQueue
    extends java.lang.Object
    implements java.util.Queue<Workflow<?>>
    Priority queue for Workflow instances. Entries in the queue are ordered using their priority and enqueue timestamp
    • Constructor Detail

      • WfPriorityQueue

        public WfPriorityQueue()
      • WfPriorityQueue

        public WfPriorityQueue​(int initialSize)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Workflow<?>>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<Workflow<?>>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<Workflow<?>>
      • iterator

        public java.util.Iterator<Workflow<?>> iterator()
        Specified by:
        iterator in interface java.util.Collection<Workflow<?>>
        Specified by:
        iterator in interface java.lang.Iterable<Workflow<?>>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<Workflow<?>>
      • toArray

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<Workflow<?>>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<Workflow<?>>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<Workflow<?>>
      • addAll

        public boolean addAll​(java.util.Collection<? extends Workflow<?>> c)
        Specified by:
        addAll in interface java.util.Collection<Workflow<?>>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<Workflow<?>>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<Workflow<?>>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<Workflow<?>>
      • add

        public boolean add​(Workflow<?> e)
        Specified by:
        add in interface java.util.Collection<Workflow<?>>
        Specified by:
        add in interface java.util.Queue<Workflow<?>>
      • offer

        public boolean offer​(Workflow<?> e)
        Specified by:
        offer in interface java.util.Queue<Workflow<?>>
      • remove

        public Workflow<?> remove()
        Specified by:
        remove in interface java.util.Queue<Workflow<?>>
      • poll

        public Workflow<?> poll()
        Specified by:
        poll in interface java.util.Queue<Workflow<?>>
      • element

        public Workflow<?> element()
        Specified by:
        element in interface java.util.Queue<Workflow<?>>
      • peek

        public Workflow<?> peek()
        Specified by:
        peek in interface java.util.Queue<Workflow<?>>