Class FileSystemStorageProvider
java.lang.Object
com.broadleafcommerce.common.audit.batch.FileSystemStorageProvider
- All Implemented Interfaces:
StorageProvider
File system version of
StorageProvider
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileSystemStorageProvider
-
-
Method Details
-
newBatch
Description copied from interface:StorageProvider
Create a newBatch
storage representation- Specified by:
newBatch
in interfaceStorageProvider
- Returns:
- new
Batch
storage representation
-
completeBatch
Description copied from interface:StorageProvider
Complete aBatch
to its completion state- Specified by:
completeBatch
in interfaceStorageProvider
- Parameters:
batch
- TheBatch
storage representation to complete- Returns:
- The completed
Batch
representation
-
review
Description copied from interface:StorageProvider
Preview all completed batches as a stream ofBatch
instances. The stream is automatically closed once the consumer exits.- Specified by:
review
in interfaceStorageProvider
- Parameters:
consumer
- A consumer receiving a stream of paths for review
-
nextIngestionBatch
Description copied from interface:StorageProvider
Grab the next available completed batch from storage for ingestion.- Specified by:
nextIngestionBatch
in interfaceStorageProvider
- Returns:
- The next available completed batch from storage. Null if none available.
-