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
public class DBSInvalidations extends Object implements SerializableAccumulableInvalidations
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DBSInvalidations()DBSInvalidations(boolean all)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String id)voidadd(SerializableAccumulableInvalidations o)Adds other invalidations to this one.voidaddAll(Collection<String> idsToAdd)protected voidcheckMaxSize()voidclear()static DBSInvalidationsdeserialize(InputStream in)booleanisEmpty()Checks if this contains no invalidations.voidserialize(OutputStream out)Serializes this to an output stream.protected voidsetAll()StringtoString()
-
-
-
Field Detail
-
MAX_SIZE
public static final int MAX_SIZE
Maximum 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:
- Constant Field Values
-
all
public boolean all
Used locally when invalidating everything, or when too many invalidations have been received.
-
-
Method Detail
-
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
public void add(SerializableAccumulableInvalidations o)
Description copied from interface:SerializableAccumulableInvalidationsAdds other invalidations to this one.- Specified by:
addin interfaceSerializableAccumulableInvalidations
-
add
public void add(String id)
-
addAll
public void addAll(Collection<String> idsToAdd)
-
serialize
public void serialize(OutputStream out) throws IOException
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
public static DBSInvalidations deserialize(InputStream in) throws IOException
- Throws:
IOException
-
-