public final class LanguageDetectionWorker extends Object implements com.hpe.caf.worker.document.extensibility.DocumentWorker
| Constructor and Description |
|---|
LanguageDetectionWorker(com.hpe.caf.worker.document.model.Application application,
LanguageDetectionWorkerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkHealth(com.hpe.caf.worker.document.model.HealthMonitor healthMonitor)
This method provides an opportunity for the worker to report if it has any problems which would prevent it processing documents
correctly.
|
void |
processDocument(com.hpe.caf.worker.document.model.Document document)
Processes a single document.
|
public LanguageDetectionWorker(com.hpe.caf.worker.document.model.Application application,
LanguageDetectionWorkerConfiguration configuration)
public void checkHealth(com.hpe.caf.worker.document.model.HealthMonitor healthMonitor)
checkHealth in interface com.hpe.caf.worker.document.extensibility.DocumentWorkerhealthMonitor - used to report the health of the applicationpublic void processDocument(com.hpe.caf.worker.document.model.Document document)
throws InterruptedException,
com.hpe.caf.worker.document.exceptions.DocumentWorkerTransientException
processDocument in interface com.hpe.caf.worker.document.extensibility.DocumentWorkerdocument - the document to be processed.InterruptedException - if any thread has interrupted the current threadcom.hpe.caf.worker.document.exceptions.DocumentWorkerTransientException - if the document could not be processedCopyright © 2015–2021 EntIT Software LLC, a Micro Focus company. All rights reserved.