Class TargetInstanceApi.TargetInstancePages
- java.lang.Object
-
- org.jclouds.googlecloud.internal.BaseCallerArg0ToIteratorOfListPage<T,ListOptions,I>
-
- org.jclouds.googlecomputeengine.internal.BaseCallerArg0ToIteratorOfListPage<TargetInstance,TargetInstanceApi.TargetInstancePages>
-
- org.jclouds.googlecomputeengine.features.TargetInstanceApi.TargetInstancePages
-
- All Implemented Interfaces:
com.google.common.base.Function<ListPage<TargetInstance>,Iterator<ListPage<TargetInstance>>>
,Function<ListPage<TargetInstance>,Iterator<ListPage<TargetInstance>>>
,InvocationContext<TargetInstanceApi.TargetInstancePages>
- Enclosing interface:
- TargetInstanceApi
public static final class TargetInstanceApi.TargetInstancePages extends BaseCallerArg0ToIteratorOfListPage<TargetInstance,TargetInstanceApi.TargetInstancePages>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.common.base.Function<String,ListPage<TargetInstance>>
fetchNextPage(String zoneName, ListOptions options)
This is used when you need to close over the argument that created the api.-
Methods inherited from class org.jclouds.googlecloud.internal.BaseCallerArg0ToIteratorOfListPage
apply, setContext
-
-
-
-
Method Detail
-
fetchNextPage
protected com.google.common.base.Function<String,ListPage<TargetInstance>> fetchNextPage(String zoneName, ListOptions options)
Description copied from class:BaseCallerArg0ToIteratorOfListPage
This is used when you need to close over the argument that created the api. For example,callerArg0
will become "myzone", which you can use to ensure the next page goes to the same zone:api.instancesInZone("myzone").list()
- Specified by:
fetchNextPage
in classBaseCallerArg0ToIteratorOfListPage<TargetInstance,ListOptions,TargetInstanceApi.TargetInstancePages>
-
-