Package org.nuxeo.ecm.core.storage.sql
Class VCSInvalidations
java.lang.Object
org.nuxeo.ecm.core.storage.sql.VCSInvalidations
- All Implemented Interfaces:
Serializable,SerializableAccumulableInvalidations,SerializableMessage
A set of invalidations.
Records both modified and deleted fragments, as well as "parents modified" fragments.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanUsed locally when invalidating everything, or when too many invalidations have been received.null when emptystatic final intstatic final intMaximum number of invalidations kept, after which onlyallis set.null when emptystatic final intstatic final StringPseudo-table for children invalidation.static final StringPseudo-table for series proxies invalidation.static final StringPseudo-table for target proxies invalidation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Serializable id, String[] tableNames, int kind) voidAdds other invalidations to this one.voidaddDeleted(RowId rowId) voidaddModified(RowId rowId) protected voidvoidclear()static VCSInvalidationsgetKindSet(int kind) only call this if it's to add at least one element in the setbooleanisEmpty()Checks if this contains no invalidations.voidserialize(OutputStream out) Serializes this to an output stream.protected voidsetAll()toString()
-
Field Details
-
PARENT
Pseudo-table for children invalidation.- See Also:
-
SERIES_PROXIES
Pseudo-table for series proxies invalidation.- See Also:
-
TARGET_PROXIES
Pseudo-table for target proxies invalidation.- See Also:
-
MODIFIED
public static final int MODIFIED- See Also:
-
DELETED
public static final int DELETED- See Also:
-
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. -
modified
null when empty -
deleted
null when empty
-
-
Constructor Details
-
VCSInvalidations
public VCSInvalidations() -
VCSInvalidations
public VCSInvalidations(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() -
getKindSet
only call this if it's to add at least one element in the set -
add
Description copied from interface:SerializableAccumulableInvalidationsAdds other invalidations to this one.- Specified by:
addin interfaceSerializableAccumulableInvalidations
-
addModified
-
addDeleted
-
add
-
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
-