Skip to content

Commit

Permalink
Add configuration property for enabling deleteAfterWrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ePaul committed Aug 10, 2023
1 parent 62264e4 commit c198091
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ public SnapshotCreationService snapshotCreationService(

@Bean
public EventLogWriter eventLogWriter(EventLogRepository eventLogRepository, ObjectMapper objectMapper,
FlowIdComponent flowIdComponent, List<CompactionKeyExtractor> extractorList) {
return new EventLogWriterImpl(eventLogRepository, objectMapper, flowIdComponent, extractorList, false);
FlowIdComponent flowIdComponent, List<CompactionKeyExtractor> extractorList,
@Value("${nakadi-producer.deleteAfterWrite:false}") boolean deleteAfterWrite) {
return new EventLogWriterImpl(eventLogRepository, objectMapper, flowIdComponent, extractorList, deleteAfterWrite);
}

@Bean
Expand Down

0 comments on commit c198091

Please sign in to comment.