Package org.jclouds.collect.internal
Class ArgsToPagedIterable<T,I extends ArgsToPagedIterable<T,I>>
java.lang.Object
org.jclouds.collect.internal.ArgsToPagedIterable<T,I>
- All Implemented Interfaces:
com.google.common.base.Function<IterableWithMarker<T>,
,PagedIterable<T>> Function<IterableWithMarker<T>,
,PagedIterable<T>> InvocationContext<I>
- Direct Known Subclasses:
Arg0ToPagedIterable
,ArgsToPagedIterable.FromCaller
@Beta
public abstract class ArgsToPagedIterable<T,I extends ArgsToPagedIterable<T,I>>
extends Object
implements com.google.common.base.Function<IterableWithMarker<T>,PagedIterable<T>>, InvocationContext<I>
Used to propagate the invoked method arguments during an advance in a
PagedIterable
.
In order to fetch the next page in the result set, subclasses may need to have the context of the initial request. This class propagates the arguments used in the original request, so they can be used to fetch the next page in the result set.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Sometimes the arguments in the invoked method do not provide enough information to fetch the next page of the result set. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(IterableWithMarker<T> input) getArgs
(GeneratedHttpRequest request) protected abstract com.google.common.base.Function
<Object, IterableWithMarker<T>> markerToNextForArgs
(List<Object> args) setContext
(HttpRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
request
-
-
Constructor Details
-
ArgsToPagedIterable
public ArgsToPagedIterable()
-
-
Method Details
-
apply
-
getArgs
-
markerToNextForArgs
protected abstract com.google.common.base.Function<Object,IterableWithMarker<T>> markerToNextForArgs(List<Object> args) -
setContext
- Specified by:
setContext
in interfaceInvocationContext<T>
-