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>>, 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.getUserApiForZone(zone).list(),
the caller arg0 is the value of zone, and the callee is
UserApi.list()
- See Also:
function in openstack-glance for a usage example.
| 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 |
ArgsToPagedIterable.FromCaller
public ArgsToPagedIterable.FromCaller()
getArgs
protected List<Object> getArgs(GeneratedHttpRequest request)
- Overrides:
getArgs in class ArgsToPagedIterable<T,I extends ArgsToPagedIterable.FromCaller<T,I>>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.