public class DBSInvalidations extends Object
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(DBSInvalidations other) |
void |
add(String id) |
void |
addAll(Collection<String> idsToAdd) |
protected void |
checkMaxSize() |
void |
clear() |
boolean |
isEmpty() |
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()
public void clear()
protected void setAll()
protected void checkMaxSize()
public void add(DBSInvalidations other)
public void addAll(Collection<String> idsToAdd)
Copyright © 2016 Nuxeo SA. All rights reserved.