com.rhi.architecture.parc
Interface Supplier

All Known Subinterfaces:
Channel
All Known Implementing Classes:
AbstractChannel

public interface Supplier

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.

Since:
1.0
Author:
Pete McKinstry

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

pull

public java.util.Collection pull(int max)
                          throws ProcessingException
Get a collection from the channel, possibly waiting indefinitely until a group of items can be returned.

Parameters:
max - - the max number of records to pull from the channel.
Returns:
Collection of records from the channel.
Throws:
ProcessingException - error extracting records.
Since:
1.0

registerMonitor

public void registerMonitor(Monitor m)
Register Object for notification when records are available.

Parameters:
m -


Copyright © 2002-2004 Robert Half International. All Rights Reserved.