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 LicenseModel
getCachedLicense
(Mandant client) static LicenseModel
getCachedLicense
(String licenseKey, Callable<LicenseSyncData> function) static LicenseModel
static String
getEntryKey
(String licenseKey) static org.ehcache.Cache<String,
LicenseCacheModel> static void
init()
static void
reinit()
Reinitialize cache after configuration changestatic void
removeEntry
(String licenseKey) static void
shutdown()
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
-