Interface SyncPageFetcher<ResponseT>


  • public interface SyncPageFetcher<ResponseT>
    • Method Detail

      • hasNextPage

        boolean hasNextPage​(ResponseT oldPage)
        Returns a boolean value indicating if a next page is available.
        Parameters:
        oldPage - last page sent by service in a paginated operation
        Returns:
        True if there is a next page available. Otherwise false.
      • nextPage

        ResponseT nextPage​(ResponseT oldPage)
        Method that uses the information in #oldPage and returns the next page if available by making a service call.
        Parameters:
        oldPage - last page sent by service in a paginated operation
        Returns:
        the next page if available. Otherwise returns null.