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>>>, org.jclouds.rest.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(org.jclouds.http.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()Copyright © 2009-2019 The Apache Software Foundation. All Rights Reserved.