public abstract class BaseArg0ToIteratorOfListPage<T,O extends ListOptions,I extends BaseArg0ToIteratorOfListPage<T,O,I>> extends Object implements com.google.common.base.Function<ListPage<T>,Iterator<ListPage<T>>>, InvocationContext<I>
Constructor and Description |
---|
BaseArg0ToIteratorOfListPage() |
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 arg0,
O options)
This is used when you need to close over the first argument of this api.
|
I |
setContext(HttpRequest request) |
protected abstract com.google.common.base.Function<String,ListPage<T>> fetchNextPage(String arg0, O options)
arg0
will become "myzone", which you can use to ensure the next page goes to the
same zone: api.operations().listInZone("myzone")
public I setContext(HttpRequest request)
setContext
in interface InvocationContext<I extends BaseArg0ToIteratorOfListPage<T,O,I>>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.