|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BatchOperation<I,O>
An operation that consists of a sequence of independent units of work that need to be run as a batch job.
All operations in a batch will be performed sequentially in a single thread (or we'd need a more complex producer/consumer API here), but there is no guarantee that they will be run in the same Hibernate session, transaction, or against the same database connection.
Method Summary | |
---|---|
void |
done()
Called at the end of batch processing, whether the processing was successful or not. |
int |
getExpectedTotal()
|
Iterable<I> |
input()
|
com.google.common.base.Function<I,O> |
operation()
|
void |
prepare()
Called before the batch is processed. |
Method Detail |
---|
void prepare()
Iterable<I> input()
com.google.common.base.Function<I,O> operation()
int getExpectedTotal()
void done()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |