Package com.northconcepts.datapipeline.throttle
package com.northconcepts.datapipeline.throttle
Limits the rate (bytes/second or records/second) at which data is read or written.
-
ClassDescriptionLimits the average rate measured by a
Meterby making the calling thread sleep while the count is ahead of the allowed rate.Implemented by streams, readers and writers whose rate is limited by aThrottle.AMeteredInputStreamthat pauses after reads when needed to keep its average rate at or below a set number of bytes per second.AMeteredOutputStreamthat pauses before writes when needed to keep its average rate at or below a set number of bytes per second.A proxy that limits the rate (bytes/second) at which data is read.A proxy that limits the rate (bytes/second) at which data is written.