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>
- Direct Known Subclasses:
QueuesToPagedIterable
- 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 ofregion
, and the callee isUserApi.list()
- See Also:
function in openstack-glance for a usage example.
-
-
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 Constructor Description FromCaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Object>
getArgs(GeneratedHttpRequest request)
-
Methods inherited from class org.jclouds.collect.internal.ArgsToPagedIterable
apply, markerToNextForArgs, setContext
-
-
-
-
Method Detail
-
getArgs
protected List<Object> getArgs(GeneratedHttpRequest request)
- Overrides:
getArgs
in classArgsToPagedIterable<T,I extends ArgsToPagedIterable.FromCaller<T,I>>
-
-