com.atlassian.jira.issue.customfields.manager
Class CachedGenericConfigManager
java.lang.Object
com.atlassian.jira.issue.customfields.manager.CachedGenericConfigManager
- All Implemented Interfaces:
- GenericConfigManager, JiraCachedManager
public class CachedGenericConfigManager
- extends Object
- implements GenericConfigManager, JiraCachedManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachedGenericConfigManager
public CachedGenericConfigManager(GenericConfigManager delegate)
onClearCache
@EventListener
public void onClearCache(ClearCacheEvent event)
create
public void create(String dataType,
String key,
@Nullable
Object obj)
- Description copied from interface:
GenericConfigManager
- Stores a new entry for the config manager. For example a customfield may have a default value.
- Specified by:
create
in interface GenericConfigManager
- Parameters:
dataType
- The datatype for which to store the generic config (e.g.: DefaultValue)key
- A key that identifies the element (e.g.: 10000)obj
- The actual object to store.
update
public void update(String dataType,
String key,
@Nullable
Object obj)
- Description copied from interface:
GenericConfigManager
- Updates an entry.
- Specified by:
update
in interface GenericConfigManager
- Parameters:
dataType
- The datatype for which to store the generic config (e.g.: DefaultValue)key
- A key that identifies the element (e.g.: 10000)obj
- The actual object to store.
retrieve
public Object retrieve(String dataType,
String key)
- Description copied from interface:
GenericConfigManager
- Retrieves a particular entry.
- Specified by:
retrieve
in interface GenericConfigManager
- Parameters:
dataType
- The datatype for which to store the generic config (e.g.: DefaultValue)key
- A key that identifies the element (e.g.: 10000)
- Returns:
- The entry, or null if it doesn't exist.
remove
public void remove(String dataType,
String key)
- Description copied from interface:
GenericConfigManager
- Removes a generic config value.
- Specified by:
remove
in interface GenericConfigManager
- Parameters:
dataType
- The datatype for which to store the generic config (e.g.: DefaultValue)key
- A key that identifies the element (e.g.: 10000)
getCacheSize
public long getCacheSize()
- Specified by:
getCacheSize
in interface JiraCachedManager
refreshCache
public void refreshCache()
- Specified by:
refreshCache
in interface JiraCachedManager
Copyright © 2002-2013 Atlassian. All Rights Reserved.