public class Pager<ApiType,ApiListType>
extends java.lang.Object
implements java.lang.Iterable<ApiType>
| Modifier and Type | Class and Description |
|---|---|
static class |
Pager.PagerParams |
| Constructor and Description |
|---|
Pager(java.util.function.Function<Pager.PagerParams,com.squareup.okhttp.Call> listFunc,
io.kubernetes.client.ApiClient client,
java.lang.Integer limit,
java.lang.reflect.Type listType)
Pagination in kubernetes list call depends on continue and limit variable
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<ApiType> |
iterator()
Iterator iterator.
|
public Pager(java.util.function.Function<Pager.PagerParams,com.squareup.okhttp.Call> listFunc, io.kubernetes.client.ApiClient client, java.lang.Integer limit, java.lang.reflect.Type listType)
listFunc - lambda of type: (PagerParams p)->{return
list<*>[namespace[s|d]]*<*>Call(...p.getContinue(),...p.getLimit()...);}client - instance of ApiClientlimit - size of list to be fetchedlistType - Type of list to be fetchedCopyright © 2019. All rights reserved.