Class JobQueue
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<Job>, Collection<Job>, Deque<Job>, List<Job>, Queue<Job>, SequencedCollection<Job>
Represent the queue (the queue of the system) and this queue contains
the jobs waiting for processing
- See Also:
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToQueueVoid(Job newJob) add job in to systemvoidRemove a job from the systemMethods inherited from class LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, reversed, set, size, spliterator, toArray, toArrayMethods inherited from class AbstractSequentialList
iteratorMethods inherited from class AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
JobQueue
public JobQueue()Initializer of JobQueue class
-
-
Method Details
-
addToQueueVoid
add job in to system -
removeFromQueue
Remove a job from the system- Returns:
- returns the first element in the queue
-
clearQueue
public void clearQueue()
-