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
Constructors Constructor Description LocalAttachmentTextExtractionService(BiFunction<Long,Integer,AttachmentTextExtraction> textExtractionFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()CompletionStage<AttachmentTextExtraction>submit(long attachmentId, int version)Submit a text extraction task for an attachment of the provided id and version.
-
-
-
Constructor Detail
-
LocalAttachmentTextExtractionService
public LocalAttachmentTextExtractionService(BiFunction<Long,Integer,AttachmentTextExtraction> textExtractionFunction)
-
-
Method Detail
-
submit
public CompletionStage<AttachmentTextExtraction> submit(long attachmentId, int version)
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.
-
-