Package org.opencms.ade.configuration
Class CmsSynchronizedUpdateSet<U>
java.lang.Object
org.opencms.ade.configuration.CmsSynchronizedUpdateSet<U>
- Type Parameters:
U
- the type representing the updates
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 Summary
-
Method Summary
-
Constructor Details
-
CmsSynchronizedUpdateSet
public CmsSynchronizedUpdateSet()
-
-
Method Details
-
add
Adds a new update.- Parameters:
update
- the update
-
removeAll
Removes all updates from the internal set and returns a new set containing the removed updates.- Returns:
- the removed updates
-