public class DbBackedCachedPropertySetManager extends Object implements DbBackedPropertySetManager, Startable
PropertySet.| Constructor and Description |
|---|
DbBackedCachedPropertySetManager(QueryDslAccessor queryDslAccessor,
com.atlassian.cache.CacheManager cacheManager,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar) |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Supplier<? extends com.opensymphony.module.propertyset.PropertySet> |
getPropertySetSupplier() |
void |
onClearCache(ClearCacheEvent event) |
void |
onDatabaseImportCompleted(DatabaseImportCompletedEvent event) |
void |
refresh()
refresh the underlying property set - this can also cause properties to be lost
if the PropertySet has not been written to a backing store
|
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
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 DbBackedCachedPropertySetManager(QueryDslAccessor queryDslAccessor, com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
public void start()
throws Exception
Startablepublic java.util.function.Supplier<? extends com.opensymphony.module.propertyset.PropertySet> getPropertySetSupplier()
getPropertySetSupplier in interface BackingPropertySetManagerSupplier that references the underlying property setpublic void refresh()
BackingPropertySetManagerrefresh in interface BackingPropertySetManagerpublic void switchBackingStore()
BackingPropertySetManagerswitchBackingStore in interface BackingPropertySetManager@EventListener public void onClearCache(@Nullable ClearCacheEvent event)
@EventListener public void onDatabaseImportCompleted(DatabaseImportCompletedEvent event)
Copyright © 2002-2021 Atlassian. All Rights Reserved.