Skip to content

Commit

Permalink
MODSOURCE-752: add config param to enable/disable domain events
Browse files Browse the repository at this point in the history
  • Loading branch information
PBobylev committed Jul 29, 2024
1 parent 1c5558b commit 6feb886
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.folio.rest.jaxrs.model.SourceRecordDomainEvent;
import org.folio.rest.jaxrs.model.SourceRecordDomainEvent.EventType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
Expand All @@ -29,6 +30,8 @@ public class RecordDomainEventPublisher {
public static final String RECORD_DOMAIN_TOPIC = "srs.source_records";
private static final String RECORD_TYPE = "folio.srs.recordType";
private static final Logger LOG = LogManager.getLogger();
@Value("${ENABLE_DOMAIN_EVENTS:true}")
private boolean enableDomainEvents;

@Autowired
private KafkaConfig kafkaConfig;
Expand Down

0 comments on commit 6feb886

Please sign in to comment.