Class MemorySwitchToDatabaseBackedPropertiesManager
java.lang.Object
com.atlassian.jira.config.properties.MemorySwitchToDatabaseBackedPropertiesManager
- All Implemented Interfaces:
BackingPropertySetManager
public class MemorySwitchToDatabaseBackedPropertiesManager
extends Object
implements BackingPropertySetManager
- Since:
- v4.4
-
Constructor Summary
ConstructorDescriptionCreate a PropertySet that is really 2 propertysets. -
Method Summary
Modifier and TypeMethodDescriptionSupplier<? extends com.opensymphony.module.propertyset.PropertySet>
void
refresh()
This clears the cache - in this implementation it also switches to database modevoid
If the backing property set supports switching to different backing storage, then switch - otherwise noop For now the switch is one way
-
Constructor Details
-
MemorySwitchToDatabaseBackedPropertiesManager
public MemorySwitchToDatabaseBackedPropertiesManager()Create a PropertySet that is really 2 propertysets. One is backed by memory - the other by a DB The active propertySet is indicated by hte active flag. When initiallly created the memory backed set is active.
-
-
Method Details
-
refresh
public void refresh()This clears the cache - in this implementation it also switches to database mode- Specified by:
refresh
in interfaceBackingPropertySetManager
-
switchBackingStore
public void switchBackingStore()Description copied from interface:BackingPropertySetManager
If the backing property set supports switching to different backing storage, then switch - otherwise noop For now the switch is one way- Specified by:
switchBackingStore
in interfaceBackingPropertySetManager
-
getManager
- Specified by:
getManager
in interfaceBackingPropertySetManager
- Returns:
- the
Supplier
that references the underlying application properties manager
-
getPropertySetSupplier
- Specified by:
getPropertySetSupplier
in interfaceBackingPropertySetManager
- Returns:
- the
Supplier
that references the underlying property set
-