Class LimitedRequestImpl
- java.lang.Object
-
- com.atlassian.confluence.api.model.pagination.LimitedRequestImpl
-
- All Implemented Interfaces:
LimitedRequest,SkipDiscardLimitedRequest
@ExperimentalApi public class LimitedRequestImpl extends Object implements SkipDiscardLimitedRequest
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLimitedRequestImpl(int start, int limit, int maxLimit)protectedLimitedRequestImpl(int start, int limit, int needed, int maxLimit)protectedLimitedRequestImpl(int start, int limit, int needed, int maxLimit, boolean shouldSkipDiscardingThreshold)protectedLimitedRequestImpl(int start, Cursor cursor, int limit, int needed, int maxLimit, boolean shouldSkipDiscardingThreshold)protectedLimitedRequestImpl(PageRequest request, int maxLimit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LimitedRequestcreate(int maxLimit)static LimitedRequestcreate(int start, int limit, int maxLimit)static LimitedRequestcreate(int start, int limit, int maxLimit, boolean shouldSkipDiscardingThreshold)static LimitedRequestcreate(Cursor cursor, int limit, int maxLimit)static LimitedRequestcreate(PageRequest request, int maxLimit)booleanequals(Object obj)CursorgetCursor()intgetLimit()intgetMaxLimit()intgetNeeded()Deprecated.since 5.7.2.intgetStart()inthashCode()booleanshouldSkipDiscardingThreshold()Return whether PaginationServiceImpl should skip DiscardingThreshold by set it threshold to 0StringtoString()
-
-
-
Constructor Detail
-
LimitedRequestImpl
protected LimitedRequestImpl(PageRequest request, int maxLimit)
-
LimitedRequestImpl
protected LimitedRequestImpl(int start, int limit, int maxLimit)
-
LimitedRequestImpl
protected LimitedRequestImpl(int start, int limit, int needed, int maxLimit)
-
LimitedRequestImpl
protected LimitedRequestImpl(int start, int limit, int needed, int maxLimit, boolean shouldSkipDiscardingThreshold)
-
LimitedRequestImpl
protected LimitedRequestImpl(int start, Cursor cursor, int limit, int needed, int maxLimit, boolean shouldSkipDiscardingThreshold)
-
-
Method Detail
-
create
public static LimitedRequest create(PageRequest request, int maxLimit)
-
create
public static LimitedRequest create(int maxLimit)
-
create
public static LimitedRequest create(int start, int limit, int maxLimit)
-
create
public static LimitedRequest create(int start, int limit, int maxLimit, boolean shouldSkipDiscardingThreshold)
-
create
public static LimitedRequest create(Cursor cursor, int limit, int maxLimit)
-
getNeeded
@Deprecated public int getNeeded()
Deprecated.since 5.7.2. No longer used.- Specified by:
getNeededin interfaceLimitedRequest- Returns:
- the number of results needed to return to fulfill this request, may exceed getLimit
-
getStart
public int getStart()
- Specified by:
getStartin interfaceLimitedRequest- Returns:
- zero-based start index for the page of results (first result is 0)
-
getLimit
public int getLimit()
- Specified by:
getLimitin interfaceLimitedRequest- Returns:
- the maximum results to fetch to attempt to fulfil the request
-
getMaxLimit
public int getMaxLimit()
- Specified by:
getMaxLimitin interfaceLimitedRequest- Returns:
- the maximum limit for this request
-
shouldSkipDiscardingThreshold
public boolean shouldSkipDiscardingThreshold()
Description copied from interface:SkipDiscardLimitedRequestReturn whether PaginationServiceImpl should skip DiscardingThreshold by set it threshold to 0- Specified by:
shouldSkipDiscardingThresholdin interfaceSkipDiscardLimitedRequest- Returns:
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceLimitedRequest- Returns:
- the identifier which is used to skip results from a previous query when paginating.
-
-