Package org.nuxeo.ecm.core.storage.dbs
Class DBSInvalidations
java.lang.Object
org.nuxeo.ecm.core.storage.dbs.DBSInvalidations
- All Implemented Interfaces:
Serializable,SerializableAccumulableInvalidations,SerializableMessage
A set of invalidations for a given repository.
Records both modified and deleted fragments, as well as "parents modified" fragments.
- Since:
- 8.10
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidAdds other invalidations to this one.voidaddAll(Collection<String> idsToAdd) protected voidvoidclear()static DBSInvalidationsbooleanisEmpty()Checks if this contains no invalidations.voidserialize(OutputStream out) Serializes this to an output stream.protected voidsetAll()toString()
-
Field Details
-
MAX_SIZE
public static final int MAX_SIZEMaximum number of invalidations kept, after which onlyallis set. This avoids accumulating too many invalidations in memory, at the expense of more coarse-grained invalidations.- See Also:
-
all
public boolean allUsed locally when invalidating everything, or when too many invalidations have been received. -
ids
null when empty
-
-
Constructor Details
-
DBSInvalidations
public DBSInvalidations() -
DBSInvalidations
public DBSInvalidations(boolean all)
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:SerializableAccumulableInvalidationsChecks if this contains no invalidations.- Specified by:
isEmptyin interfaceSerializableAccumulableInvalidations
-
clear
public void clear() -
setAll
protected void setAll() -
checkMaxSize
protected void checkMaxSize() -
add
Description copied from interface:SerializableAccumulableInvalidationsAdds other invalidations to this one.- Specified by:
addin interfaceSerializableAccumulableInvalidations
-
add
-
addAll
-
serialize
Description copied from interface:SerializableMessageSerializes this to an output stream. The deserialization is handled byAbstractPubSubBroker.deserialize(java.io.InputStream).- Specified by:
serializein interfaceSerializableMessage- Throws:
IOException
-
deserialize
- Throws:
IOException
-
toString
-