Package org.jclouds.packet.functions
Class BaseToPagedIterable<T,O extends ListOptions>
- java.lang.Object
-
- org.jclouds.collect.internal.ArgsToPagedIterable<T,I>
-
- org.jclouds.collect.internal.Arg0ToPagedIterable<T,BaseToPagedIterable<T,O>>
-
- org.jclouds.packet.functions.BaseToPagedIterable<T,O>
-
- All Implemented Interfaces:
com.google.common.base.Function<IterableWithMarker<T>,PagedIterable<T>>
,Function<IterableWithMarker<T>,PagedIterable<T>>
,InvocationContext<BaseToPagedIterable<T,O>>
public abstract class BaseToPagedIterable<T,O extends ListOptions> extends Arg0ToPagedIterable<T,BaseToPagedIterable<T,O>>
Base class to implement the functions that build thePagedIterable
. Subclasses just need to override thefetchPageUsingOptions(ListOptions, Optional)
to invoke the right API method with the given options parameter to get the next page.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jclouds.collect.internal.Arg0ToPagedIterable
Arg0ToPagedIterable.FromCaller<T,I extends Arg0ToPagedIterable.FromCaller<T,I>>
-
-
Field Summary
Fields Modifier and Type Field Description protected PacketApi
api
-
Fields inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
request
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseToPagedIterable(PacketApi api, com.google.common.base.Function<Href,O> hrefToOptions)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IterableWithMarker<T>
fetchPageUsingOptions(O options, com.google.common.base.Optional<Object> arg0)
protected com.google.common.base.Function<Object,IterableWithMarker<T>>
markerToNextForArg0(com.google.common.base.Optional<Object> arg0)
-
Methods inherited from class org.jclouds.collect.internal.Arg0ToPagedIterable
markerToNextForArgs
-
Methods inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
apply, getArgs, setContext
-
-
-
-
Field Detail
-
api
protected final PacketApi api
-
-
Method Detail
-
fetchPageUsingOptions
protected abstract IterableWithMarker<T> fetchPageUsingOptions(O options, com.google.common.base.Optional<Object> arg0)
-
markerToNextForArg0
protected com.google.common.base.Function<Object,IterableWithMarker<T>> markerToNextForArg0(com.google.common.base.Optional<Object> arg0)
- Specified by:
markerToNextForArg0
in classArg0ToPagedIterable<T,BaseToPagedIterable<T,O extends ListOptions>>
- Parameters:
arg0
- present when there was an arg0
-
-