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 void
destroy()
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: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
.
-
-