expose the flush interval as a time.interval
make bucket size configurable