startTime = Math.max(startTime, System.currentTimeMillis() - streamConfig.getTTL());
// Create the stream event reader
FileReader<StreamEventOffset, Iterable<StreamFileOffset>> reader = createReader(streamConfig, startTime);
try {
ReadFilter readFilter = createReadFilter(startTime, endTime);
List<StreamEvent> events = Lists.newArrayListWithCapacity(100);
int eventsRead = reader.read(events, getReadLimit(limit), 0, TimeUnit.SECONDS, readFilter);
// If empty already, return 204 no content
if (eventsRead <= 0) {