public class DBSInvalidations extends Object implements SerializableInvalidations
Records both modified and deleted fragments, as well as "parents modified" fragments.
Modifier and Type | Field and Description |
---|---|
boolean |
all
Used locally when invalidating everything, or when too many invalidations have been received.
|
Set<String> |
ids
null when empty
|
static int |
MAX_SIZE
Maximum number of invalidations kept, after which only
all is set. |
Constructor and Description |
---|
DBSInvalidations() |
DBSInvalidations(boolean all) |
Modifier and Type | Method and Description |
---|---|
void |
add(SerializableInvalidations o)
Adds other invalidations to this one.
|
void |
add(String id) |
void |
addAll(Collection<String> idsToAdd) |
protected void |
checkMaxSize() |
void |
clear() |
static DBSInvalidations |
deserialize(InputStream in) |
boolean |
isEmpty()
Checks if this contains no invalidations.
|
void |
serialize(OutputStream out)
Serializes this to an output stream.
|
protected void |
setAll() |
String |
toString() |
public static final int MAX_SIZE
all
is set. This avoids accumulating too many
invalidations in memory, at the expense of more coarse-grained invalidations.public boolean all
public DBSInvalidations()
public DBSInvalidations(boolean all)
public boolean isEmpty()
SerializableInvalidations
isEmpty
in interface SerializableInvalidations
public void clear()
protected void setAll()
protected void checkMaxSize()
public void add(SerializableInvalidations o)
SerializableInvalidations
add
in interface SerializableInvalidations
public void addAll(Collection<String> idsToAdd)
public void serialize(OutputStream out) throws IOException
SerializableInvalidations
AbstractPubSubInvalidator.deserialize(java.io.InputStream)
.serialize
in interface SerializableInvalidations
IOException
public static DBSInvalidations deserialize(InputStream in) throws IOException
IOException
Copyright © 2017 Nuxeo. All rights reserved.