public class ClientsStatus extends Document
Constructor and Description |
---|
ClientsStatus() |
Modifier and Type | Method and Description |
---|---|
void |
addToHistory(java.util.SortedSet<ClientsHistory> newIntervals)
Adds all given clients history objects that don't overlap with
existing clients history objects.
|
void |
clearDirty() |
void |
compressHistory(long lastSeenMillis)
Compresses the history of clients objects by merging adjacent
intervals, depending on how far back in the past they lie.
|
java.util.SortedSet<ClientsHistory> |
getHistory() |
boolean |
isDirty() |
void |
setFromDocumentString(java.lang.String documentString) |
void |
setHistory(java.util.SortedSet<ClientsHistory> history) |
java.lang.String |
toDocumentString() |
getDocumentString, setDocumentString
public boolean isDirty()
public void clearDirty()
public void setHistory(java.util.SortedSet<ClientsHistory> history)
public java.util.SortedSet<ClientsHistory> getHistory()
public void setFromDocumentString(java.lang.String documentString)
setFromDocumentString
in class Document
public void addToHistory(java.util.SortedSet<ClientsHistory> newIntervals)
public void compressHistory(long lastSeenMillis)
public java.lang.String toDocumentString()
toDocumentString
in class Document