/** * The <code>RequestCollector</code> object used to collect the data * from the underlying transport. In order to collect a body this * must be given an <code>Allocator</code> which is used to create * an internal buffer to store the consumed body. * * @param allocator this is the allocator used to buffer data * @param tracker this is the tracker used to create sessions * @param channel this is the channel used to read the data */ public RequestCollector(Allocator allocator, Channel channel) { this.entity = new EntityConsumer(allocator, channel); this.timer = new Timer(MILLISECONDS); this.cursor = channel.getCursor(); this.trace = channel.getTrace(); this.channel = channel; }
/** * The <code>Collector</code> object used to collect the data from * the underlying transport. In order to collect a body this must * be given an <code>Allocator</code> which is used to create an * internal buffer to store the consumed body. * * @param allocator this is the allocator used to buffer data * @param tracker this is the tracker used to create sessions * @param channel this is the channel used to read the data */ public Collector(Allocator allocator, Channel channel) { this.entity = new EntityConsumer(allocator, channel); this.timer = new Timer(MILLISECONDS); this.cursor = channel.getCursor(); this.trace = channel.getTrace(); this.channel = channel; }
/** * The <code>RequestCollector</code> object used to collect the data * from the underlying transport. In order to collect a body this * must be given an <code>Allocator</code> which is used to create * an internal buffer to store the consumed body. * * @param allocator this is the allocator used to buffer data * @param tracker this is the tracker used to create sessions * @param channel this is the channel used to read the data */ public RequestCollector(Allocator allocator, Channel channel) { this.entity = new EntityConsumer(allocator, channel); this.timer = new Timer(MILLISECONDS); this.cursor = channel.getCursor(); this.trace = channel.getTrace(); this.channel = channel; }