Interface UpdateQueue<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addItem​(T items)
      Adds item to the queue
      void addItems​(java.util.List<T> items)
      Adds all elements from the list to the queue
      java.util.List<T> getItems()
      Returns all elements in the queue.
      java.util.List<T> getItems​(java.util.Date newerThan)
      Returns all elements in the queue newer than a specific day
      T getLastItem()
      Returns last item from the queue
      void removeItems()
      Removes all elements from the queue
      void removeItems​(com.google.common.base.Predicate<T> predicate)
      Removes all matched elements
      void removeItems​(java.util.Date olderThan)
      Removes all elements from the queue older than a specific date
    • Method Detail

      • getItems

        java.util.List<T> getItems()
        Returns all elements in the queue.
        Returns:
        list of stored elements
      • getItems

        java.util.List<T> getItems​(java.util.Date newerThan)
        Returns all elements in the queue newer than a specific day
        Parameters:
        newerThan - threshold date
        Returns:
        list of stored elements
      • addItems

        void addItems​(java.util.List<T> items)
        Adds all elements from the list to the queue
        Parameters:
        items - elements to be stored
      • addItem

        void addItem​(T items)
        Adds item to the queue
        Parameters:
        items - elements to be stored
      • removeItems

        void removeItems​(java.util.Date olderThan)
        Removes all elements from the queue older than a specific date
        Parameters:
        olderThan - threshold date
      • removeItems

        void removeItems()
        Removes all elements from the queue
      • getLastItem

        T getLastItem()
        Returns last item from the queue
        Returns:
        last element
      • removeItems

        void removeItems​(com.google.common.base.Predicate<T> predicate)
        Removes all matched elements
        Parameters:
        predicate -