Package de.xima.fc.api.cache
Class LicenseCache
- java.lang.Object
 - 
- de.xima.fc.api.cache.LicenseCache
 
 
- 
public class LicenseCache extends Object
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringCACHE_NAMEstatic StringSYSTEM_KEY 
- 
Constructor Summary
Constructors Constructor Description LicenseCache() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LicenseModelgetCachedLicense(Mandant client)static LicenseModelgetCachedLicense(String licenseKey, Callable<LicenseSyncData> function)static LicenseModelgetCachedSystemLicense()static StringgetEntryKey(String licenseKey)static org.ehcache.Cache<String,LicenseCacheModel>getInstance()static voidinit()static voidreinit()Reinitialize cache after configuration changestatic voidremoveEntry(String licenseKey)static voidshutdown()Removes the cache instance 
 - 
 
- 
- 
Field Detail
- 
CACHE_NAME
public static final String CACHE_NAME
- See Also:
 - Constant Field Values
 
 
- 
SYSTEM_KEY
public static final String SYSTEM_KEY
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getCachedSystemLicense
public static LicenseModel getCachedSystemLicense() throws IOException
- Throws:
 IOException
 
- 
getCachedLicense
public static LicenseModel getCachedLicense(Mandant client) throws IOException
- Throws:
 IOException
 
- 
removeEntry
public static void removeEntry(String licenseKey)
 
- 
getCachedLicense
public static LicenseModel getCachedLicense(String licenseKey, Callable<LicenseSyncData> function) throws IOException
- Throws:
 IOException
 
- 
getInstance
public static org.ehcache.Cache<String,LicenseCacheModel> getInstance()
 
- 
shutdown
public static void shutdown()
Removes the cache instance 
- 
init
public static void init()
 
- 
reinit
public static void reinit()
Reinitialize cache after configuration change 
 - 
 
 -