Package org.duracloud.duradmin.util
Class ScrollableList<E>
java.lang.Object
org.duracloud.duradmin.util.ScrollableList<E>
- All Implemented Interfaces:
Scrollable<E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfirst()longThe max number of results per page; ie the page size.Returns the results for the current "page"booleanbooleanvoidvoidnext()voidprevious()voidsetMaxResultsPerPage(int maxResults) protected final voidupdate()
-
Constructor Details
-
ScrollableList
public ScrollableList()
-
-
Method Details
-
getMaxResultsPerPage
public long getMaxResultsPerPage()Description copied from interface:ScrollableThe max number of results per page; ie the page size.- Specified by:
getMaxResultsPerPagein interfaceScrollable<E>- Returns:
-
markForUpdate
public void markForUpdate() -
setMaxResultsPerPage
public void setMaxResultsPerPage(int maxResults) - Specified by:
setMaxResultsPerPagein interfaceScrollable<E>
-
next
public void next() -
first
public void first()- Specified by:
firstin interfaceScrollable<E>
-
previous
public void previous()- Specified by:
previousin interfaceScrollable<E>
-
isPreviousAvailable
public boolean isPreviousAvailable()- Specified by:
isPreviousAvailablein interfaceScrollable<E>
-
isNextAvailable
public boolean isNextAvailable() -
getResultList
Description copied from interface:ScrollableReturns the results for the current "page"- Specified by:
getResultListin interfaceScrollable<E>- Returns:
-
update
- Throws:
DataRetrievalException
-
getData
- Throws:
DataRetrievalException
-