public final class PaginationUtils extends Object
PaginatedResponses and those containing lists of Resources.| Modifier and Type | Method and Description |
|---|---|
static <T extends Resource<?>,U extends PaginatedResponse<T>> |
requestClientV2Resources(Function<Integer,Mono<U>> pageSupplier)
Generate the stream of resources accumulated from a series of responses obtained from the page supplier.
|
static <T,U extends PaginatedResponse<T>> |
requestClientV3Resources(Function<Integer,Mono<U>> pageSupplier)
Generate the stream of resources accumulated from a series of responses obtained from the page supplier.
|
static <T,U extends PaginatedResponse<T>> |
requestUaaResources(Function<Integer,Mono<U>> pageSupplier)
Generate the stream of resources accumulated from a series of responses obtained from the page supplier.
|
public static <T extends Resource<?>,U extends PaginatedResponse<T>> Flux<T> requestClientV2Resources(Function<Integer,Mono<U>> pageSupplier)
T - the type of resource in the list on each PaginatedResponse.U - the type of PaginatedResponse.pageSupplier - a function from integers to Monos of PaginatedResponses.T objects.public static <T,U extends PaginatedResponse<T>> Flux<T> requestClientV3Resources(Function<Integer,Mono<U>> pageSupplier)
T - the type of resource in the list on each PaginatedResponse.U - the type of PaginatedResponse.pageSupplier - a function from integers to Monos of PaginatedResponses.T objects.public static <T,U extends PaginatedResponse<T>> Flux<T> requestUaaResources(Function<Integer,Mono<U>> pageSupplier)
T - the type of resource in the list on each PaginatedResponse.U - the type of PaginatedResponse.pageSupplier - a function from integers to Monos of PaginatedResponses.T objects.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.