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
Modifier and TypeFieldDescriptionboolean
Used locally when invalidating everything, or when too many invalidations have been received.null when emptystatic final int
static final int
Maximum number of invalidations kept, after which onlyall
is set.null when emptystatic final int
static final String
Pseudo-table for children invalidation.static final String
Pseudo-table for series proxies invalidation.static final String
Pseudo-table for target proxies invalidation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Serializable id, String[] tableNames, int kind) void
Adds other invalidations to this one.void
addDeleted
(RowId rowId) void
addModified
(RowId rowId) protected void
void
clear()
static VCSInvalidations
getKindSet
(int kind) only call this if it's to add at least one element in the setboolean
isEmpty()
Checks if this contains no invalidations.void
serialize
(OutputStream out) Serializes this to an output stream.protected void
setAll()
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 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. -
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:SerializableAccumulableInvalidations
Checks if this contains no invalidations.- Specified by:
isEmpty
in 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:SerializableAccumulableInvalidations
Adds other invalidations to this one.- Specified by:
add
in interfaceSerializableAccumulableInvalidations
-
addModified
-
addDeleted
-
add
-
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
-