MD
- The type of metadata being returned in the delta results. For example, in the
DbxClientV1.getDelta(java.lang.String, boolean)
, this has type DbxEntry
.public final class DbxDelta<MD extends Dumpable> extends Dumpable
Modifier and Type | Class and Description |
---|---|
static class |
DbxDelta.Entry<MD extends Dumpable>
A single "delta entry" in a
DbxDelta page. |
static class |
DbxDelta.Reader<MD extends Dumpable>
For JSON parsing.
|
Modifier and Type | Field and Description |
---|---|
String |
cursor
A string that is used by the server to keep track of which entries have already been
returned to you.
|
List<DbxDelta.Entry<MD>> |
entries
Apply these entries to your local state to catch up with the Dropbox server's state.
|
boolean |
hasMore
If
true , then there are more entries available. |
boolean |
reset
If
true , then you should reset your local state to be an empty
folder before processing the list of delta entries. |
Constructor and Description |
---|
DbxDelta(boolean reset,
List<DbxDelta.Entry<MD>> entries,
String cursor,
boolean hasMore) |
Modifier and Type | Method and Description |
---|---|
protected void |
dumpFields(DumpWriter out) |
getTypeName, toString, toString, toStringMultiline, toStringMultiline
public final boolean reset
true
, then you should reset your local state to be an empty
folder before processing the list of delta entries.
This is always true
for the first delta result, but for subsequent results
it is true only in true
rare situations. For example, if Dropbox
changes their cursor format, or if a user asks Dropbox to completely reset his/her
account, then the next time you call a delta API it may send down a reset and
start you from scratch.
public final List<DbxDelta.Entry<MD extends Dumpable>> entries
public final String cursor
This cursor is valid for a long time. You'd typically store this somewhere persistent (such as a database) so you can resume continue you left off.
public final boolean hasMore
true
, then there are more entries available. You can retrieve
them immediately by making the call again (passing in cursor
).
If false
, then wait at least 5 minutes before checking again.protected void dumpFields(DumpWriter out)
dumpFields
in class Dumpable