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 ignoredConstructor 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 StoreOperationStrategy
Copyright © 2002-2015 Atlassian. All Rights Reserved.