public class FailoverOnMissingOperationStrategy extends Object implements StoreOperationStrategy
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| Constructor and Description |
|---|
FailoverOnMissingOperationStrategy(StreamAttachmentStore primaryAttachmentStore,
StreamAttachmentStore secondaryAttachmentStore) |
| Modifier and Type | Method and Description |
|---|---|
<V> com.atlassian.util.concurrent.Promise<V> |
perform(com.atlassian.util.concurrent.Function<StreamAttachmentStore,com.atlassian.util.concurrent.Promise<V>> operation) |
public FailoverOnMissingOperationStrategy(StreamAttachmentStore primaryAttachmentStore, StreamAttachmentStore secondaryAttachmentStore)
public <V> com.atlassian.util.concurrent.Promise<V> perform(com.atlassian.util.concurrent.Function<StreamAttachmentStore,com.atlassian.util.concurrent.Promise<V>> operation)
perform in interface StoreOperationStrategyCopyright © 2002-2016 Atlassian. All Rights Reserved.