|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueueingProcessor
Pile work operations No thread safety has to be implemented, the queue being scoped already The implementation must be "stateless" wrt the queue through (ie not store the queue state) FIXME this Interface does not make much sense, since the impl will not be changed
Method Summary | |
---|---|
void |
add(Work work,
WorkQueue workQueue)
Add a work TODO move that somewhere else, it does not really fit here |
void |
cancelWorks(WorkQueue workQueue)
Rollback works |
void |
close()
clean resources This method should log errors rather than raise an exception |
void |
performWorks(WorkQueue workQueue)
Execute works |
void |
prepareWorks(WorkQueue workQueue)
prepare resources for a later performWorks call |
Method Detail |
---|
void add(Work work, WorkQueue workQueue)
void prepareWorks(WorkQueue workQueue)
void performWorks(WorkQueue workQueue)
void cancelWorks(WorkQueue workQueue)
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |