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 and Description |
---|
BaseCallerArg0ToIteratorOfListPage() |
Modifier and Type | Method and Description |
---|---|
Iterator<ListPage<T>> |
apply(ListPage<T> input) |
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.
|
I |
setContext(HttpRequest request) |
protected abstract com.google.common.base.Function<String,ListPage<T>> fetchNextPage(String callerArg0, O options)
callerArg0
will become "myzone", which you can use to ensure the next page goes to the
same zone: api.instancesInZone("myzone").list()
public I setContext(HttpRequest request)
setContext
in interface InvocationContext<I extends BaseCallerArg0ToIteratorOfListPage<T,O,I>>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.