class InputStreamEventStore extends SegmentBasedEventStore implements ReadOnlySegmentsHandler {

    @Override
    public Optional<EventSource> getEventSource(long segment) {
        logger.debug("Get eventsource: {}", segment);
        InputStreamEventSource eventSource = get(segment, false);
        logger.trace("result={}", eventSource);
        if (eventSource == null) {
            return Optional.empty();
        }
        return Optional.of(eventSource);
    }

    public  InputStreamEventStore(EventTypeContext context, IndexManager indexManager,
                                 EventTransformerFactory eventTransformerFactory,
                                 StorageProperties storageProperties, MeterFactory meterFactory);

}