|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Consumer interface is used to store items. The Channel & Adapter classes are the major implementations of this Interface. Credits: (1) Doug Lea's concurrency package. (2) The Filter/Pipe pattern in the POSA book.
Method Summary | |
java.util.Collection |
pull(int max)
Get a collection from the channel, possibly waiting indefinitely until a group of items can be returned. |
void |
registerMonitor(Monitor m)
Register Object for notification when records are available. |
Method Detail |
public java.util.Collection pull(int max) throws ProcessingException
max
- - the max number of records to pull from the channel.
ProcessingException
- error extracting records.public void registerMonitor(Monitor m)
m
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |