|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Channel interface represents the glue that ties processing elements together in the pipeline architecture. The channel is both a consumer and a supplier. Records can be 'put' into the channel by the supplier, and 'taken' out of the channel by the consumer. Credits: (1) Doug Lea's concurrency package. (2) Bundle Routing Architecture developed for Iridium.
Method Summary | |
java.lang.Object |
clone()
Clone of this channel. |
java.util.Collection |
pull(int max)
Extract a collection of records from the Channel up to the provided maximum record count. |
void |
push(java.util.Collection set)
Place a collection of Records in the channel, blocking until they are all accepted. |
Methods inherited from interface com.rhi.architecture.parc.Supplier |
registerMonitor |
Method Detail |
public void push(java.util.Collection set) throws ProcessingException
push
in interface Consumer
set
- - the group of records to be inserted.
ProcessingException
- - error adding records to the
channel.public java.util.Collection pull(int max) throws ProcessingException
pull
in interface Supplier
max
- - the maximum number of records to pull from the channel.
ProcessingException
- - error extracting records
from the channel.public java.lang.Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |