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:AttachmentTextExtractionServiceSubmit a text extraction task for an attachment of the provided id and version.- Specified by:
submitin interfaceAttachmentTextExtractionService- Parameters:
attachmentId- attachment idversion- attachment version- Returns:
CompletionStagedescribingAttachmentTextExtraction.
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-