cobald.decorator.buffer module
- class cobald.decorator.buffer.Buffer(*args, **kwargs)[source]
Bases:
PoolDecorator
A timed buffer for changes to a pool
- Parameters
target – the pool to which changes are applied
window – interval after which changes are applied
Any changes made to
demand
are stored internally. Everywindow
seconds, the final demand is applied totarget
.- demand = 0.0