Package org.nuxeo.ecm.core.storage
Class InvalidationsQueue<T extends SerializableAccumulableInvalidations>
java.lang.Object
org.nuxeo.ecm.core.storage.InvalidationsQueue<T>
- Type Parameters:
T
- the invalidations type
- Direct Known Subclasses:
DBSInvalidationsQueue
,VCSInvalidationsQueue
public abstract class InvalidationsQueue<T extends SerializableAccumulableInvalidations>
extends Object
Queue of invalidations.
All invalidations added are accumulated (from multiple threads), then returned when asked for.
- Since:
- 11.1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInvalidations
(T invalidations) Adds invalidations.Gets the queued invalidations and resets the queue.abstract T
Constructs new empty invalidations, of typeInvalidationsQueue
.toString()
-
Field Details
-
queue
-
name
used for debugging
-
-
Constructor Details
-
InvalidationsQueue
-
-
Method Details
-
newInvalidations
Constructs new empty invalidations, of typeInvalidationsQueue
. -
addInvalidations
Adds invalidations.May be called asynchronously from multiple threads.
-
getInvalidations
Gets the queued invalidations and resets the queue. -
toString
-