@Inject
public TimelineEventHandler(final MeterConfig config, final TimelineDao timelineDAO, final TimelineCoder timelineCoder, final SampleCoder sampleCoder, final BackgroundDBChunkWriter backgroundWriter, final FileBackedBuffer fileBackedBuffer) {
this.config = config;
this.timelineDAO = timelineDAO;
this.timelineCoder = timelineCoder;
this.sampleCoder = sampleCoder;
this.backgroundWriter = backgroundWriter;
this.backingBuffer = fileBackedBuffer;
this.shutdownSaveMode = ShutdownSaveMode.fromString(config.getShutdownSaveMode());
}