Package org.jclouds.googlecloud.internal
Class BaseCallerArg0ToIteratorOfListPage<T,O extends ListOptions,I extends BaseCallerArg0ToIteratorOfListPage<T,O,I>>
java.lang.Object
org.jclouds.googlecloud.internal.BaseCallerArg0ToIteratorOfListPage<T,O,I>
- All Implemented Interfaces:
com.google.common.base.Function<ListPage<T>,,Iterator<ListPage<T>>> Function<ListPage<T>,,Iterator<ListPage<T>>> InvocationContext<I>
- Direct Known Subclasses:
BaseCallerArg0ToIteratorOfListPage
public abstract class BaseCallerArg0ToIteratorOfListPage<T,O extends ListOptions,I extends BaseCallerArg0ToIteratorOfListPage<T,O,I>>
extends Object
implements com.google.common.base.Function<ListPage<T>,Iterator<ListPage<T>>>, InvocationContext<I>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetchNextPage(String callerArg0, O options) This is used when you need to close over the argument that created the api.setContext(HttpRequest request) Methods 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
-
Constructor Details
-
BaseCallerArg0ToIteratorOfListPage
public BaseCallerArg0ToIteratorOfListPage()
-
-
Method Details
-
apply
- Specified by:
applyin interfacecom.google.common.base.Function<T,O extends ListOptions> - Specified by:
applyin interfaceFunction<T,O extends ListOptions>
-
fetchNextPage
protected abstract com.google.common.base.Function<String,ListPage<T>> fetchNextPage(String callerArg0, O options) This 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() -
setContext
- Specified by:
setContextin interfaceInvocationContext<T>
-