protected class CMISAPI.ChangesIterator
extends org.exoplatform.clouddrive.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.ChangeEvent>
CMISException in case of remote or
communication errors.| Modifier and Type | Field and Description |
|---|---|
protected List<org.apache.chemistry.opencmis.client.api.ChangeEvent> |
changes
The changes.
|
protected CMISAPI.ChangeToken |
changeToken
The latest chunk token.
|
protected boolean |
cleanNext
The clean next.
|
protected boolean |
firstRun
The first run.
|
protected boolean |
hasMoreItems
The has more items.
|
protected CMISAPI.ChangeToken |
lastFetchedToken
The latest chunk token.
|
protected CMISAPI.ChangeToken |
latestChunkToken
The latest chunk token.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ChangesIterator(CMISAPI.ChangeToken startChangeToken)
Instantiates a new changes iterator.
|
| Modifier and Type | Method and Description |
|---|---|
protected CMISAPI.ChangeToken |
getLastChangeToken()
Last consumed event change token.
|
boolean |
hasNext() |
protected boolean |
hasNextChunk() |
org.apache.chemistry.opencmis.client.api.ChangeEvent |
next() |
protected Iterator<org.apache.chemistry.opencmis.client.api.ChangeEvent> |
nextChunk() |
protected CMISAPI.ChangeToken changeToken
protected CMISAPI.ChangeToken lastFetchedToken
protected CMISAPI.ChangeToken latestChunkToken
protected List<org.apache.chemistry.opencmis.client.api.ChangeEvent> changes
protected boolean firstRun
protected boolean hasMoreItems
protected boolean cleanNext
protected ChangesIterator(CMISAPI.ChangeToken startChangeToken) throws CMISException, org.exoplatform.clouddrive.CloudDriveAccessException
startChangeToken - the start change tokenCMISException - the CMIS exceptionorg.exoplatform.clouddrive.CloudDriveAccessException - the cloud drive access exceptionprotected Iterator<org.apache.chemistry.opencmis.client.api.ChangeEvent> nextChunk() throws CMISException, org.exoplatform.clouddrive.CloudDriveAccessException
nextChunk in class org.exoplatform.clouddrive.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.ChangeEvent>CMISExceptionorg.exoplatform.clouddrive.CloudDriveAccessExceptionprotected boolean hasNextChunk()
hasNextChunk in class org.exoplatform.clouddrive.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.ChangeEvent>public boolean hasNext()
throws org.exoplatform.clouddrive.CloudDriveException
hasNext in class org.exoplatform.clouddrive.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.ChangeEvent>org.exoplatform.clouddrive.CloudDriveExceptionpublic org.apache.chemistry.opencmis.client.api.ChangeEvent next()
throws NoSuchElementException,
org.exoplatform.clouddrive.CloudDriveException
next in class org.exoplatform.clouddrive.utils.ChunkIterator<org.apache.chemistry.opencmis.client.api.ChangeEvent>NoSuchElementExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected CMISAPI.ChangeToken getLastChangeToken()
CMISAPI.ChangeToken last fetched change token, token of last
fetched events portion or nullCopyright © 2003–2019 eXo Platform SAS. All rights reserved.