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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Adds other invalidations to this one.void
addAll
(Collection<String> idsToAdd) protected void
void
clear()
static DBSInvalidations
boolean
isEmpty()
Checks if this contains no invalidations.void
serialize
(OutputStream out) Serializes this to an output stream.protected void
setAll()
toString()
-
Field Details
-
MAX_SIZE
public static final int MAX_SIZEMaximum number of invalidations kept, after which onlyall
is 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:SerializableAccumulableInvalidations
Checks if this contains no invalidations.- Specified by:
isEmpty
in interfaceSerializableAccumulableInvalidations
-
clear
public void clear() -
setAll
protected void setAll() -
checkMaxSize
protected void checkMaxSize() -
add
Description copied from interface:SerializableAccumulableInvalidations
Adds other invalidations to this one.- Specified by:
add
in interfaceSerializableAccumulableInvalidations
-
add
-
addAll
-
serialize
Description copied from interface:SerializableMessage
Serializes this to an output stream. The deserialization is handled byAbstractPubSubBroker.deserialize(java.io.InputStream)
.- Specified by:
serialize
in interfaceSerializableMessage
- Throws:
IOException
-
deserialize
- Throws:
IOException
-
toString
-