Class LimitedRequestImpl

    • 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​(int start,
                                            int limit,
                                            int maxLimit)
      • create

        public static LimitedRequest create​(int start,
                                            int limit,
                                            int maxLimit,
                                            boolean shouldSkipDiscardingThreshold)
      • getNeeded

        @Deprecated
        public int getNeeded()
        Deprecated.
        since 5.7.2. No longer used.
        Specified by:
        getNeeded in interface LimitedRequest
        Returns:
        the number of results needed to return to fulfill this request, may exceed getLimit
      • getStart

        public int getStart()
        Specified by:
        getStart in interface LimitedRequest
        Returns:
        zero-based start index for the page of results (first result is 0)
      • getLimit

        public int getLimit()
        Specified by:
        getLimit in interface LimitedRequest
        Returns:
        the maximum results to fetch to attempt to fulfil the request
      • getMaxLimit

        public int getMaxLimit()
        Specified by:
        getMaxLimit in interface LimitedRequest
        Returns:
        the maximum limit for this request
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getCursor

        public Cursor getCursor()
        Specified by:
        getCursor in interface LimitedRequest
        Returns:
        the identifier which is used to skip results from a previous query when paginating.