rename BufferSize to FlushAt and FlushInterval to FlushAfter