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 Jul 28, 2023
1 parent 1455fbc commit 17b9fa7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,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 17b9fa7

Please sign in to comment.