@author Ilkka Priha @version $Id: BoundedBuffer.java 264148 2005-08-29 14:21:04Z henning $
@author Doug Lea @author Last changed by: $Author: gommma $ @version $Revision: 766 $ $Date: 2008-08-01 13:05:20 +0200 (ven, 01 ago 2008) $ @since ? (pre 2.1)
146147148149150151152
* * @param capacity a capacity. */ public PoolBuffer(int capacity) { pool = new BoundedBuffer(capacity); }
149150151152153154155
190191192193194195196
257258259260261262263
295296297298299300301
280281282283284285286
184185186187188189190
6869707172737475767778
* @param source The source of the data * @throws DataSetException */ public StreamingIterator(IDataSetProducer source) throws DataSetException { Channel channel = new BoundedBuffer(30); _channel = channel; AsynchronousConsumer consumer = new AsynchronousConsumer(source, channel, this); Thread thread = new Thread(consumer, "StreamingIterator"); thread.setDaemon(true);