D
- The type of domain objects to assemblepublic class TimeBasedBatchSipAssembler<D> extends BatchSipAssemblerWithCallback<D>
Constructor and Description |
---|
TimeBasedBatchSipAssembler(SipAssembler<D> assembler,
SipSegmentationStrategy<D> segmentationStrategy,
java.io.File dir,
SipAssemblyTimer sipAssemblyTimer) |
TimeBasedBatchSipAssembler(SipAssembler<D> assembler,
SipSegmentationStrategy<D> segmentationStrategy,
SipAssemblyTimer sipAssemblyTimer) |
TimeBasedBatchSipAssembler(SipAssembler<D> assembler,
SipSegmentationStrategy<D> segmentationStrategy,
java.util.function.Supplier<java.io.File> fileSupplier,
SipAssemblyTimer sipAssemblyTimer) |
Modifier and Type | Method and Description |
---|---|
void |
add(D domainObject)
Add a domain object to the batch of SIPs.
|
void |
end()
End the batch assembly process.
|
protected void |
sipEnded(FileGenerationMetrics metrics) |
getCallback, getLock
closeCurrentSip, getSipsMetrics, setFinalSipInDss
public TimeBasedBatchSipAssembler(SipAssembler<D> assembler, SipSegmentationStrategy<D> segmentationStrategy, SipAssemblyTimer sipAssemblyTimer)
public TimeBasedBatchSipAssembler(SipAssembler<D> assembler, SipSegmentationStrategy<D> segmentationStrategy, java.io.File dir, SipAssemblyTimer sipAssemblyTimer)
public TimeBasedBatchSipAssembler(SipAssembler<D> assembler, SipSegmentationStrategy<D> segmentationStrategy, java.util.function.Supplier<java.io.File> fileSupplier, SipAssemblyTimer sipAssemblyTimer)
public void add(D domainObject) throws java.io.IOException
BatchSipAssembler
add
in class BatchSipAssembler<D>
domainObject
- The domain object to addjava.io.IOException
- When an I/O error occursprotected void sipEnded(FileGenerationMetrics metrics)
sipEnded
in class BatchSipAssemblerWithCallback<D>
public void end() throws java.io.IOException
BatchSipAssembler
end
in class BatchSipAssembler<D>
java.io.IOException
- When an I/O error occurs