public class SynchronizedPluginPersistentStateStore extends Object implements PluginPersistentStateStore
PluginPersistentStateStore.
This wrapper is intended as an interim measure to investigate and experiment with locking to avoid the worst symptoms of
PLUG-1106. It's not designed to fix the underlying causes of the concurrency issues.| Modifier and Type | Class and Description |
|---|---|
static class |
SynchronizedPluginPersistentStateStore.LockMode |
| Constructor and Description |
|---|
SynchronizedPluginPersistentStateStore(PluginPersistentStateStore delegate) |
SynchronizedPluginPersistentStateStore(PluginPersistentStateStore delegate,
ReadWriteLock lock) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLockModeProperty() |
PluginPersistentState |
load()
Get the saved activation state of loaded plugins or modules.
|
void |
save(PluginPersistentState state)
Put the current global state of plugin activation/deactivation into permanent
storage.
|
public SynchronizedPluginPersistentStateStore(PluginPersistentStateStore delegate)
public SynchronizedPluginPersistentStateStore(PluginPersistentStateStore delegate, ReadWriteLock lock)
@Internal public static String getLockModeProperty()
public void save(PluginPersistentState state)
PluginPersistentStateStoreCallers should only pass in values for those plugins or modules that are not in their default state.
save in interface PluginPersistentStateStorestate - the map of plugin and module activation statespublic PluginPersistentState load()
PluginPersistentStateStoreload in interface PluginPersistentStateStoreCopyright © 2015 Atlassian. All rights reserved.