com.atlassian.jira.issue.attachment
Interface AttachmentDataBulkImport
- All Known Implementing Classes:
- DefaultAttachmentDataBulkImport
public interface AttachmentDataBulkImport
Contains methods for bulk importing attachment data into the attachment storage subsystem. Importantly, it assumes
that the Attachment metadata already exists in the database.
- Since:
- v6.3
Method Summary |
void |
importAttachmentDataFrom(ReadOnlyFileBasedAttachmentStore source,
int concurrency,
com.atlassian.fugue.Option<com.atlassian.util.concurrent.Effect<Attachment>> onCompleteAttachment)
Import attachment data from the specified file system source with specified concurrency, and an optional effect
that is run after each attachment is imported (e.g. |
importAttachmentDataFrom
void importAttachmentDataFrom(ReadOnlyFileBasedAttachmentStore source,
int concurrency,
com.atlassian.fugue.Option<com.atlassian.util.concurrent.Effect<Attachment>> onCompleteAttachment)
throws AttachmentRuntimeException
- Import attachment data from the specified file system source with specified concurrency, and an optional effect
that is run after each attachment is imported (e.g. to update a task progress sink). The import operation is
terminated if there is an error.
- Parameters:
source
- The file system source of attachment dataconcurrency
- The number of concurrent attachment importsonCompleteAttachment
- Optional effect that is run after each attachment is imported.
- Throws:
AttachmentRuntimeException
- If there was an error.
Copyright © 2002-2014 Atlassian. All Rights Reserved.