com.ibm.mashups.enabler.strategy
Interface ListLoadAheadStrategy

All Superinterfaces:
Strategy

public ListLoadAheadStrategy
extends Strategy

Interface that defines a load ahead strategy for loading elements of a list. When applied to a list model it will load the given number of elements at a time from the backend.
Example; A ListLoadAheadStrategy with interval = 10 will cause the model to load new data from the backend with every 10th call of the method next() when using the iterator of the list.


Constructor Summary
constructor(int interval)
           
 
Method Summary
 int getInterval()
           Returns the number of elements to load ahead
 

Constructor Detail

constructor

public constructor(int interval)
Parameters:
interval - number of elements to be loaded ahead from the backend. must not be null or less than one.
Method Detail

getInterval

int getInterval()
Returns the number of elements to load ahead

Returns:
number of elements to load ahead


Copyright IBM Corp. 2010 All Rights Reserved.