public static < E > ServiceFuture < List < E > > fromPageResponse ( Observable < ServiceResponse < Page < E > > > first , final Func1 < String , Observable < ServiceResponse < Page < E > > > > next , final ListOperationCallback < E > callback ) { final AzureServiceFuture < List < E > > serviceCall = new AzureServiceFuture <> ( ) ; final PagingSubscriber < E > subscriber = new PagingSubscriber <> ( serviceCall , next , callback ) ; serviceCall . setSubscription ( first . single ( ) . subscribe ( subscriber ) ) ; return serviceCall ; }
Creates a ServiceCall from a paging operation .