com.atlassian.confluence.api.model.pagination
Interface LimitedRequest

All Known Implementing Classes:
LimitedRequestImpl

@ExperimentalApi
public interface LimitedRequest

A PageRequest guaranteed to have a limit capped to a developer provided value rather than a user provided value. getLimit is restricted to the minimum of getMaxLimit and the user provided value. Does not support requesting unlimited result sets.


Method Summary
 int getLimit()
           
 int getMaxLimit()
           
 int getNeeded()
          Deprecated. since 5.7.2
 int getStart()
          start index for the page of results
 

Method Detail

getStart

int getStart()
start index for the page of results


getLimit

int getLimit()
Returns:
the maximum results to fetch to attempt to fulfil the request

getMaxLimit

int getMaxLimit()
Returns:
the maximum limit for this request

getNeeded

@Deprecated
int getNeeded()
Deprecated. since 5.7.2

Returns:
the number of results needed to return to fulfill this request, may exceed getLimit


Copyright © 2003–2015 Atlassian. All rights reserved.