public interface ResumptionToken
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(String token)
Deserializes the resumption token and sets the properties of this token accordingly.
|
String |
getLastObjIdentifier()
Gets the identifier of the last returned document.
|
String |
getMetadataPrefix()
Gets the requested metadata prefix.
|
int |
getnMaxElements()
Gets the total number of documents.
|
int |
getnRead()
Gets the number of already read records.
|
String |
getQuery()
Gets the requested query.
|
String |
getRequestedSet()
Gets the requested set.
|
boolean |
hasDateRange() |
String |
serialize()
Serializes the resumption token.
|
void |
setDateRange(boolean hasDateRange) |
void |
setLastObjIdentifier(String lastObjIdentifier)
Sets the identifier of the last returned document.
|
void |
setMetadataPrefix(String metadataPrefix)
Sets the requested metadata prefix.
|
void |
setnMaxElements(int nMaxElements)
Sets the total number of documents.
|
void |
setnRead(int nRead)
Sets the number of already read records.
|
void |
setQuery(String query)
Sets the requested query.
|
void |
setRequestedSet(String requestedSet)
Sets the requested set.
|
String serialize()
void deserialize(String token) throws BadResumptionTokenException
token - a String serialization of this token.BadResumptionTokenException - if the token is not compliant to the expected format and therefore cannot be serializedint getnMaxElements()
void setnMaxElements(int nMaxElements)
nMaxElements - the total number of documentsString getMetadataPrefix()
void setMetadataPrefix(String metadataPrefix)
metadataPrefix - String getQuery()
void setQuery(String query)
query - the requested queryint getnRead()
void setnRead(int nRead)
nRead - the number of already read records.String getLastObjIdentifier()
void setLastObjIdentifier(String lastObjIdentifier)
lastObjIdentifier - the identifier of the last returned documentString getRequestedSet()
void setRequestedSet(String requestedSet)
requestedSet - the name of the requested setboolean hasDateRange()
void setDateRange(boolean hasDateRange)
Copyright © 2026. All rights reserved.