Interface PageRetriever<C,​P>

  • Type Parameters:
    C - Type of the continuation token.
    P - the page elements type
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface PageRetriever<C,​P>
    This class handles retrieving pages.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Flux<P> get​(C continuationToken, Integer pageSize)
      Retrieves one or more pages starting from the page identified by the given continuation token.
    • Method Detail

      • get

        Flux<P> get​(C continuationToken,
                    Integer pageSize)
        Retrieves one or more pages starting from the page identified by the given continuation token.
        Parameters:
        continuationToken - Token identifying which page to retrieve, passing null indicates to retrieve the first page.
        pageSize - The number of items to retrieve per page, passing null will use the source's default page size.
        Returns:
        A Flux that emits one or more pages.