Package de.xima.fc.api.cache
Class LicenseCache
java.lang.Object
de.xima.fc.api.cache.LicenseCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LicenseModelgetCachedLicense(Mandant client) static LicenseModelgetCachedLicense(String licenseKey, Callable<LicenseSyncData> function) static LicenseModelstatic StringgetEntryKey(String licenseKey) static org.ehcache.Cache<String,LicenseCacheModel> static voidinit()static voidreinit()Reinitialize cache after configuration changestatic voidremoveEntry(String licenseKey) static voidshutdown()Removes the cache instance
-
Field Details
-
CACHE_NAME
- See Also:
-
SYSTEM_KEY
- See Also:
-
-
Constructor Details
-
LicenseCache
public LicenseCache()
-
-
Method Details
-
getCachedSystemLicense
- Throws:
IOException
-
getCachedLicense
- Throws:
IOException
-
removeEntry
-
getCachedLicense
public static LicenseModel getCachedLicense(String licenseKey, Callable<LicenseSyncData> function) throws IOException - Throws:
IOException
-
getEntryKey
-
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
-