Package org.projectnessie.services.spi
Class PagedCountingResponseHandler<R,E>
- java.lang.Object
-
- org.projectnessie.services.spi.PagedCountingResponseHandler<R,E>
-
- All Implemented Interfaces:
PagedResponseHandler<R,E>
public abstract class PagedCountingResponseHandler<R,E> extends java.lang.Object implements PagedResponseHandler<R,E>
-
-
Constructor Summary
Constructors Constructor Description PagedCountingResponseHandler(java.lang.Integer maxRecords)PagedCountingResponseHandler(java.lang.Integer maxRecords, int strictMax)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaddEntry(E entry)Add an entry to the response page builder.protected abstract booleandoAddEntry(E entry)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projectnessie.services.spi.PagedResponseHandler
build, hasMore
-
-
-
-
Method Detail
-
doAddEntry
protected abstract boolean doAddEntry(E entry)
-
addEntry
public final boolean addEntry(E entry)
Description copied from interface:PagedResponseHandlerAdd an entry to the response page builder.- Specified by:
addEntryin interfacePagedResponseHandler<R,E>- Parameters:
entry- the entry to add- Returns:
trueifentrycould be added to the response page orfalseif not
-
-