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 Details

  • Constructor Details

    • InvalidationsQueue

      public InvalidationsQueue(String name)
  • Method Details

    • newInvalidations

      public abstract T newInvalidations()
      Constructs new empty invalidations, of type InvalidationsQueue.
    • addInvalidations

      public void addInvalidations(T invalidations)
      Adds invalidations.

      May be called asynchronously from multiple threads.

    • getInvalidations

      public T getInvalidations()
      Gets the queued invalidations and resets the queue.
    • toString

      public String toString()
      Overrides:
      toString in class Object