Class LocalAttachmentTextExtractionService
java.lang.Object
com.atlassian.confluence.internal.index.attachment.LocalAttachmentTextExtractionService
- All Implemented Interfaces:
AttachmentTextExtractionService
,org.springframework.beans.factory.DisposableBean
public class LocalAttachmentTextExtractionService
extends Object
implements AttachmentTextExtractionService, org.springframework.beans.factory.DisposableBean
Service that processes attachment text extraction requests such that the requests on the same attachment will be
processed sequentially.
- Since:
- 6.5
-
Constructor Summary
ConstructorsConstructorDescriptionLocalAttachmentTextExtractionService
(BiFunction<Long, Integer, AttachmentTextExtraction> textExtractionFunction) -
Method Summary
-
Constructor Details
-
LocalAttachmentTextExtractionService
public LocalAttachmentTextExtractionService(BiFunction<Long, Integer, AttachmentTextExtraction> textExtractionFunction)
-
-
Method Details
-
submit
Description copied from interface:AttachmentTextExtractionService
Submit a text extraction task for an attachment of the provided id and version.- Specified by:
submit
in interfaceAttachmentTextExtractionService
- Parameters:
attachmentId
- attachment idversion
- attachment version- Returns:
CompletionStage
describingAttachmentTextExtraction
.
-
destroy
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
-