public class BoxListEvents extends BoxList<BoxEvent> implements IStreamPosition
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIELD_CHUNK_SIZE |
static java.lang.String |
FIELD_NEXT_STREAM_POSITION |
collection, collectionInProperties, FIELD_ENTRIES, FIELD_LIMIT, FIELD_OFFSET, FIELD_ORDER, FIELD_TOTAL_COUNTmProperties| Constructor and Description |
|---|
BoxListEvents() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(BoxEvent boxEvent) |
boolean |
addAll(java.util.Collection<? extends BoxEvent> c) |
void |
clear() |
java.lang.Long |
getChunkSize()
Gets the number of event records returned in this chunk.
|
java.lang.Long |
getNextStreamPosition()
Gets the next position in the event stream that you should request in order to get the next events.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
void |
setFilterDuplicates(boolean filterDuplicates)
Sets whether or not to filter out duplicate events which can occur due to syncing issues.
|
addCollectionToProperties, contains, containsAll, equals, fullSize, get, getSortOrders, hashCode, isEmpty, iterator, limit, offset, parseJsonObject, retainAll, size, toArray, toArraycreateFromJson, createFromJson, getPropertiesAsHashMap, parseNullJsonMember, toJson, toJsonObjectpublic static final java.lang.String FIELD_CHUNK_SIZE
public static final java.lang.String FIELD_NEXT_STREAM_POSITION
protected void parseJSONMember(JsonObject.Member member)
BoxJsonObjectSubclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember in class BoxList<BoxEvent>member - the JSON member to be parsed.public boolean add(BoxEvent boxEvent)
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends BoxEvent> c)
public void clear()
public java.lang.Long getChunkSize()
public java.lang.Long getNextStreamPosition()
getNextStreamPosition in interface IStreamPositionpublic void setFilterDuplicates(boolean filterDuplicates)
filterDuplicates - whether or not to filter out duplicate events.