public class MemorySwitchToDatabaseBackedPropertiesManager extends Object implements BackingPropertySetManager
MemorySwitchToDatabasePropertySet
Constructor and Description |
---|
MemorySwitchToDatabaseBackedPropertiesManager()
Create a PropertySet that is really 2 propertysets.
|
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Supplier<? extends com.opensymphony.module.propertyset.PropertySet> |
getPropertySetSupplier() |
void |
refresh()
This clears the cache - in this implementation it also switches to database mode
|
void |
switchBackingStore()
If the backing property set supports switching to different backing storage, then switch - otherwise noop
For now the switch is one way
|
public MemorySwitchToDatabaseBackedPropertiesManager()
public void refresh()
refresh
in interface BackingPropertySetManager
public void switchBackingStore()
BackingPropertySetManager
switchBackingStore
in interface BackingPropertySetManager
public com.atlassian.util.concurrent.Supplier<? extends com.opensymphony.module.propertyset.PropertySet> getPropertySetSupplier()
getPropertySetSupplier
in interface BackingPropertySetManager
Supplier
that references the underlying property setCopyright © 2002-2015 Atlassian. All Rights Reserved.