Class CmsSynchronizedUpdateSet<U>

java.lang.Object
org.opencms.ade.configuration.CmsSynchronizedUpdateSet<U>
Type Parameters:
U - the type representing the updates

public class CmsSynchronizedUpdateSet<U> extends 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.
  • Constructor Details

  • Method Details

    • add

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

      Parameters:
      update - the update
    • removeAll

      public Set<U> removeAll()
      Removes all updates from the internal set and returns a new set containing the removed updates.

      Returns:
      the removed updates