public class

FailoverOnMissingOperationStrategy

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

Class Overview

Operation strategy that will ignore any NoAttachmentDataException that is thrown from primary store, in this case the operation on secondary store will be treated as primary and the error from primary will be silently ignored

Summary

Public Constructors
FailoverOnMissingOperationStrategy(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 FailoverOnMissingOperationStrategy (StreamAttachmentStore primaryAttachmentStore, StreamAttachmentStore secondaryAttachmentStore)

Public Methods

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