Class RequestList

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<TOMMessage>, java.util.Collection<TOMMessage>, java.util.Deque<TOMMessage>, java.util.List<TOMMessage>, java.util.Queue<TOMMessage>

    public class RequestList
    extends java.util.LinkedList<TOMMessage>
    Extended LinkedList used to store pending requests issued by a client.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLast​(TOMMessage msg)  
      boolean contains​(int id)  
      TOMMessage get​(byte[] serializedMessage)  
      TOMMessage getById​(int id)  
      TOMMessage getBySequence​(int sequence)  
      int[] getIds()  
      TOMMessage remove​(byte[] serializedMessage)  
      TOMMessage removeById​(int id)  
      • Methods inherited from class java.util.LinkedList

        add, add, addAll, addAll, addFirst, 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, set, size, spliterator, toArray, toArray
      • Methods inherited from class java.util.AbstractSequentialList

        iterator
      • Methods inherited from class java.util.AbstractList

        equals, hashCode, listIterator, removeRange, subList
      • Methods inherited from class java.util.AbstractCollection

        containsAll, isEmpty, removeAll, retainAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.util.Deque

        iterator
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
    • Constructor Detail

      • RequestList

        public RequestList()
      • RequestList

        public RequestList​(int maxSize)
    • Method Detail

      • addLast

        public void addLast​(TOMMessage msg)
        Specified by:
        addLast in interface java.util.Deque<TOMMessage>
        Overrides:
        addLast in class java.util.LinkedList<TOMMessage>
      • remove

        public TOMMessage remove​(byte[] serializedMessage)
      • removeById

        public TOMMessage removeById​(int id)
      • getIds

        public int[] getIds()
      • get

        public TOMMessage get​(byte[] serializedMessage)
      • getBySequence

        public TOMMessage getBySequence​(int sequence)
      • contains

        public boolean contains​(int id)