Class InstanceApi.InstancePages
java.lang.Object
org.jclouds.googlecloud.internal.BaseCallerArg0ToIteratorOfListPage<Instance,ListOptions,InstanceApi.InstancePages>
org.jclouds.googlecomputeengine.internal.BaseCallerArg0ToIteratorOfListPage<Instance,InstanceApi.InstancePages>
org.jclouds.googlecomputeengine.features.InstanceApi.InstancePages
- All Implemented Interfaces:
com.google.common.base.Function<ListPage<Instance>,,Iterator<ListPage<Instance>>> Function<ListPage<Instance>,,Iterator<ListPage<Instance>>> InvocationContext<InstanceApi.InstancePages>
- Enclosing interface:
InstanceApi
public static final class InstanceApi.InstancePages
extends BaseCallerArg0ToIteratorOfListPage<Instance,InstanceApi.InstancePages>
-
Method Summary
Modifier and TypeMethodDescriptionfetchNextPage(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, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Method Details
-
fetchNextPage
protected com.google.common.base.Function<String,ListPage<Instance>> fetchNextPage(String zoneName, ListOptions options) Description copied from class:BaseCallerArg0ToIteratorOfListPageThis is used when you need to close over the argument that created the api. For example,callerArg0will become "myzone", which you can use to ensure the next page goes to the same zone:api.instancesInZone("myzone").list()- Specified by:
fetchNextPagein classBaseCallerArg0ToIteratorOfListPage<Instance,ListOptions, InstanceApi.InstancePages>
-