Package org.jclouds.collect.internal
Class ArgsToPagedIterable.FromCaller<T,I extends ArgsToPagedIterable.FromCaller<T,I>>
java.lang.Object
org.jclouds.collect.internal.ArgsToPagedIterable<T,I>
org.jclouds.collect.internal.ArgsToPagedIterable.FromCaller<T,I>
- All Implemented Interfaces:
com.google.common.base.Function<IterableWithMarker<T>,
,PagedIterable<T>> Function<IterableWithMarker<T>,
,PagedIterable<T>> InvocationContext<I>
- Enclosing class:
ArgsToPagedIterable<T,
I extends ArgsToPagedIterable<T, I>>
public abstract static class ArgsToPagedIterable.FromCaller<T,I extends ArgsToPagedIterable.FromCaller<T,I>>
extends ArgsToPagedIterable<T,I>
Sometimes the arguments in the invoked method do not provide enough
information to fetch the next page of the result set. This, for example,
is common in APIs dealing with several endpoints.
This class provides a way to propagate the arguments passed to the caller
of the method, so they can be used to fetch the next page of the result
set. For example, in the call api.getUserApi(region).list()
,
the caller arg0 is the value of region
, and the callee is
UserApi.list()
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
ArgsToPagedIterable.FromCaller<T,
I extends ArgsToPagedIterable.FromCaller<T, I>> -
Field Summary
Fields inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
request
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
apply, markerToNextForArgs, setContext
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
-
Constructor Details
-
FromCaller
public FromCaller()
-
-
Method Details
-
getArgs
- Overrides:
getArgs
in classArgsToPagedIterable<T,
I extends ArgsToPagedIterable.FromCaller<T, I>>
-