[aerogear-dev] Client Paging Strawman
Summers Pittman
supittma at redhat.com
Mon Jan 14 15:11:53 EST 2013
On 01/14/2013 03:04 PM, Douglas Campos wrote:
> On 14/01/2013, at 17:51, Summers Pittman <supittma at redhat.com> wrote:
>
>>> why would I want to change paging mid-flight?
>> Contrived situation,
> Contrived example is contrived :P
>
>> I am in the park reviewing JIRA bugs. I have chosen to only retrieve 5
>> at a time because I am on Sprint who has lousy data service. I walk
>> into my coffee shop which has terrific WiFi and I now want to retreive
>> 50 at a time because they will load before the heat death of the universe.
> Hmm, so you only create the pipes at app initialization? Looks like I was missing the android lifecycle.
You can create one any time you like, but either a) each configuration
would overwrite the old pipe in Pipeline or b) you would have obnoxious
naming conventions.
As a less contrived example, you may have a background process updating
cached data and a foreground process querying data. For instance your
background thread was downloading all of the cars but you only want to
see five red cards. It makes sense for Pipeline.get("car") to be used
by both threads.
>
> -- qmx
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
More information about the aerogear-dev
mailing list