Class Pager<ApiType extends io.kubernetes.client.common.KubernetesObject,ApiListType extends io.kubernetes.client.common.KubernetesListObject>
java.lang.Object
io.kubernetes.client.extended.pager.Pager<ApiType,ApiListType>
- All Implemented Interfaces:
Iterable<ApiType>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPager
(Function<Pager.PagerParams, okhttp3.Call> listFunc, io.kubernetes.client.openapi.ApiClient client, Integer limit, Type listType) Pagination in kubernetes list call depends on continue and limit variable -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Pager
public Pager(Function<Pager.PagerParams, okhttp3.Call> listFunc, io.kubernetes.client.openapi.ApiClient client, Integer limit, Type listType) Pagination in kubernetes list call depends on continue and limit variable- Parameters:
listFunc
- lambda of type: (PagerParams p)->{return list<*>[namespace[s|d]]*<*>Call(...p.getContinue(),...p.getLimit()...);}client
- instance ofApiClient
limit
- size of list to be fetchedlistType
- Type of list to be fetched
-
-
Method Details