Class RandomLogBlobInfoFetcher
- java.lang.Object
-
- org.nuxeo.importer.stream.producer.RandomLogBlobInfoFetcher
-
- All Implemented Interfaces:
AutoCloseable
,BlobInfoFetcher
public class RandomLogBlobInfoFetcher extends Object implements BlobInfoFetcher
Returns blob information from a Log, loop on the log.- Since:
- 9.3
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
first
protected static Duration
FIRST_READ_DELAY
protected static Duration
READ_DELAY
protected LogTailer<BlobInfoMessage>
tailer
-
Constructor Summary
Constructors Constructor Description RandomLogBlobInfoFetcher(LogTailer<BlobInfoMessage> blobInfoTailer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
BlobInfo
get(DocumentMessage.Builder builder)
protected Duration
getDuration()
-
-
-
Field Detail
-
READ_DELAY
protected static final Duration READ_DELAY
-
FIRST_READ_DELAY
protected static final Duration FIRST_READ_DELAY
-
tailer
protected final LogTailer<BlobInfoMessage> tailer
-
first
protected boolean first
-
-
Constructor Detail
-
RandomLogBlobInfoFetcher
public RandomLogBlobInfoFetcher(LogTailer<BlobInfoMessage> blobInfoTailer)
-
-
Method Detail
-
get
public BlobInfo get(DocumentMessage.Builder builder)
- Specified by:
get
in interfaceBlobInfoFetcher
-
getDuration
protected Duration getDuration()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-