Class CmsSynchronizedUpdateSet<U>

  • Type Parameters:
    U - the type representing the updates

    public class CmsSynchronizedUpdateSet<U>
    extends java.lang.Object
    Helper class which keeps track of a set of updates to be performed in a different thread. New updates can be added, and all updates can be fetched and removed at the same time.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(U update)
      Adds a new update.
      java.util.Set<U> removeAll()
      Removes all updates from the internal set and returns a new set containing the removed updates.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • add

        public void add​(U update)
        Adds a new update.

        Parameters:
        update - the update
      • removeAll

        public java.util.Set<UremoveAll()
        Removes all updates from the internal set and returns a new set containing the removed updates.

        Returns:
        the removed updates