Class FileSystemIngestionProcessor

java.lang.Object
com.broadleafcommerce.audit.service.FileSystemIngestionProcessor
All Implemented Interfaces:
IngestionProcessor

public class FileSystemIngestionProcessor extends Object implements IngestionProcessor
  • Constructor Details

    • FileSystemIngestionProcessor

      public FileSystemIngestionProcessor(AuditIngestionProperties properties, AuditHeaderRepository<com.broadleafcommerce.data.tracking.core.Trackable> headerRepository, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.springframework.context.ApplicationEventPublisher eventPublisher)
  • Method Details

    • process

      @Async("auditIngestionThreadPoolTaskExecutor") public org.springframework.util.concurrent.ListenableFuture<String> process(com.broadleafcommerce.common.audit.batch.Batch ingest)
      Description copied from interface: IngestionProcessor
      Parse and process Batch
      Specified by:
      process in interface IngestionProcessor
      Parameters:
      ingest - The batch of AuditEvent instances to process
      Returns:
      A future callback for async completion handling
    • getRecords

      protected Stream<com.broadleafcommerce.common.audit.domain.AuditEvent> getRecords(Path ingest)