public class

DualStoreConsistentOperationStrategy

extends Object
implements StoreOperationStrategy
java.lang.Object
   ↳ com.atlassian.jira.issue.attachment.store.strategy.DualStoreConsistentOperationStrategy

Class Overview

Perform operation on dual store ensuring that consistency exists in primary store. This means that only result from primary store is relevant and operation on secondary store is performed only if operation on primary store is successful;

Summary

Public Constructors
DualStoreConsistentOperationStrategy(StreamAttachmentStore primaryAttachmentStore, StreamAttachmentStore secondaryAttachmentStore)
Public Methods
<V> Promise<V> perform(Function<StreamAttachmentStore, Promise<V>> operation)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.attachment.store.strategy.StoreOperationStrategy

Public Constructors

public DualStoreConsistentOperationStrategy (StreamAttachmentStore primaryAttachmentStore, StreamAttachmentStore secondaryAttachmentStore)

Public Methods

public Promise<V> perform (Function<StreamAttachmentStore, Promise<V>> operation)