Class LimitedRequestImpl
java.lang.Object
com.atlassian.confluence.api.model.pagination.LimitedRequestImpl
- All Implemented Interfaces:
LimitedRequest
,SkipDiscardLimitedRequest
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LimitedRequestImpl
(int start, int limit, int maxLimit) protected
LimitedRequestImpl
(int start, int limit, int needed, int maxLimit) protected
LimitedRequestImpl
(int start, int limit, int needed, int maxLimit, boolean shouldSkipDiscardingThreshold) protected
LimitedRequestImpl
(int start, Cursor cursor, int limit, int needed, int maxLimit, boolean shouldSkipDiscardingThreshold) protected
LimitedRequestImpl
(PageRequest request, int maxLimit) -
Method Summary
Modifier and TypeMethodDescriptionstatic LimitedRequest
create
(int maxLimit) static LimitedRequest
create
(int start, int limit, int maxLimit) static LimitedRequest
create
(int start, int limit, int maxLimit, boolean shouldSkipDiscardingThreshold) static LimitedRequest
static LimitedRequest
create
(PageRequest request, int maxLimit) boolean
int
getLimit()
int
int
Deprecated.since 5.7.2.int
getStart()
int
hashCode()
boolean
Return whether PaginationServiceImpl should skip DiscardingThreshold by set it threshold to 0toString()
-
Constructor Details
-
LimitedRequestImpl
-
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 Details
-
create
-
create
-
create
-
create
public static LimitedRequest create(int start, int limit, int maxLimit, boolean shouldSkipDiscardingThreshold) -
create
-
getNeeded
Deprecated.since 5.7.2. No longer used.- Specified by:
getNeeded
in interfaceLimitedRequest
- Returns:
- the number of results needed to return to fulfill this request, may exceed getLimit
-
getStart
public int getStart()- Specified by:
getStart
in interfaceLimitedRequest
- Returns:
- zero-based start index for the page of results (first result is 0)
-
getLimit
public int getLimit()- Specified by:
getLimit
in interfaceLimitedRequest
- Returns:
- the maximum results to fetch to attempt to fulfil the request
-
getMaxLimit
public int getMaxLimit()- Specified by:
getMaxLimit
in interfaceLimitedRequest
- Returns:
- the maximum limit for this request
-
toString
-
hashCode
public int hashCode() -
equals
-
shouldSkipDiscardingThreshold
public boolean shouldSkipDiscardingThreshold()Description copied from interface:SkipDiscardLimitedRequest
Return whether PaginationServiceImpl should skip DiscardingThreshold by set it threshold to 0- Specified by:
shouldSkipDiscardingThreshold
in interfaceSkipDiscardLimitedRequest
- Returns:
-
getCursor
- Specified by:
getCursor
in interfaceLimitedRequest
- Returns:
- the identifier which is used to skip results from a previous query when paginating.
-