|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BatchProcessCallback<T>
A callback to be implemented by classes that process the request in smaller batches.
BatchProcessor| Method Summary | |
|---|---|
int |
getBatchSize()
|
java.util.Collection<T> |
getItems()
Collection of items to be processed in batches. |
int |
getSize(T item)
This method will normally return 1 but T could be a List or another object that has more than one entries. |
void |
processBatch(java.util.List<T> items,
int batchSize)
A batch of items to process. |
| Method Detail |
|---|
int getBatchSize()
int getSize(T item)
item - an item from the Collection(See getItems())
java.util.Collection<T> getItems()
void processBatch(java.util.List<T> items,
int batchSize)
items - batched items.batchSize - value equal to OR less than value returned by getBatchSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||