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 String
CACHE_NAME
static String
SYSTEM_KEY
-
Constructor Summary
Constructors Constructor Description LicenseCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LicenseModel
getCachedLicense(Mandant client)
static LicenseModel
getCachedLicense(String licenseKey, Callable<LicenseSyncData> function)
static LicenseModel
getCachedSystemLicense()
static String
getEntryKey(String licenseKey)
static org.ehcache.Cache<String,LicenseCacheModel>
getInstance()
static void
init()
static void
reinit()
Reinitialize cache after configuration changestatic void
removeEntry(String licenseKey)
static void
shutdown()
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
-
-