Class BlobWatermarkMessageConsumer
java.lang.Object
org.nuxeo.lib.stream.pattern.consumer.AbstractConsumer<BlobMessage>
org.nuxeo.importer.stream.consumer.BlobMessageConsumer
org.nuxeo.importer.stream.consumer.BlobWatermarkMessageConsumer
- All Implemented Interfaces:
AutoCloseable
,Consumer<BlobMessage>
Consume blobMessages and generate new blob by adding a unique watermark.
- Since:
- 10.1
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.importer.stream.consumer.BlobMessageConsumer
BlobMessageConsumer.CloseableBlob
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final Watermarker
protected final Watermarker
protected final Path
protected final String
protected final Watermarker
Fields inherited from class org.nuxeo.importer.stream.consumer.BlobMessageConsumer
blobInfoWriter, blobProvider, blobProviderName
Fields inherited from class org.nuxeo.lib.stream.pattern.consumer.AbstractConsumer
consumerId
-
Constructor Summary
ConstructorDescriptionBlobWatermarkMessageConsumer
(String consumerId, String blobProviderName, BlobInfoWriter blobInfoWriter, String watermarkPrefix, String persistBlobPath) -
Method Summary
Modifier and TypeMethodDescriptionprotected BlobMessageConsumer.CloseableBlob
addWatermark
(BlobMessage message, String watermark, Watermarker watermarker) protected BlobMessageConsumer.CloseableBlob
getBlob
(BlobMessage message) protected String
Methods inherited from class org.nuxeo.importer.stream.consumer.BlobMessageConsumer
accept, begin, commit, rollback, saveBlobInfo
Methods inherited from class org.nuxeo.lib.stream.pattern.consumer.AbstractConsumer
close, getConsumerId
-
Field Details
-
prefix
-
generatedBlobPath
-
outputPath
-
textWatermarker
-
jpegWatermarker
-
mp4Watermarker
-
-
Constructor Details
-
BlobWatermarkMessageConsumer
public BlobWatermarkMessageConsumer(String consumerId, String blobProviderName, BlobInfoWriter blobInfoWriter, String watermarkPrefix, String persistBlobPath) - Parameters:
persistBlobPath
- when it is blank we don't delete generated blobs
-
-
Method Details
-
getBlob
- Overrides:
getBlob
in classBlobMessageConsumer
-
addWatermark
protected BlobMessageConsumer.CloseableBlob addWatermark(BlobMessage message, String watermark, Watermarker watermarker) -
getWatermarkString
-