public class DBSInvalidations extends Object implements SerializableAccumulableInvalidations
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(SerializableAccumulableInvalidations 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()
SerializableAccumulableInvalidations
isEmpty
in interface SerializableAccumulableInvalidations
public void clear()
protected void setAll()
protected void checkMaxSize()
public void add(SerializableAccumulableInvalidations o)
SerializableAccumulableInvalidations
add
in interface SerializableAccumulableInvalidations
public void addAll(Collection<String> idsToAdd)
public void serialize(OutputStream out) throws IOException
SerializableMessage
AbstractPubSubBroker.deserialize(java.io.InputStream)
.serialize
in interface SerializableMessage
IOException
public static DBSInvalidations deserialize(InputStream in) throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.