Set writer thread name.
Window interval based flush.
Schedule flush per bucket.
Merge pull request #1005 from tweise/hds

Hds