Interface Batch
- All Known Implementing Classes:
FileSystemBatch
public interface Batch
A storage representation for a collection of serialized
AuditEvent instances. The number
of records contained is generally governed by
AuditProcessingProperties.getEventRecorderBatchFileMaxRecordCount().-
Method Summary
-
Method Details
-
append
Add a single serialized record- Parameters:
json- serializedAuditEvent
-
count
int count()The quantity of records currently in this batch- Returns:
- The quantity of records currently in this batch
-
name
String name()The name of the batch representation. Governed by the implementation. For example,FileSystemBatchwill return the absolute path for the batch file as the name.- Returns:
- The name of the batch representation
-
unwrap
Reveal the core object representing the stored batch. For example,FileSystemBatchwill return thePathto the batch file whenunwrap(Path.class)is called.- Type Parameters:
T- The type of the core object- Parameters:
clazz- The type of the core object- Returns:
- The core object
-