Package org.wso2.carbon.caching.impl
Class Util
java.lang.Object
org.wso2.carbon.caching.impl.Util
TODO: class description
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckAccess(String ownerTenantDomain, int ownerTenantId) static CacheEntryInfocreateCacheInfo(CacheEntryEvent cacheEntryEvent) Returnn the CacheInfo Object from CacheEntryReturn CacheInvalidationRequestSender Configuredstatic longReturn the default cache timeout value (Mins) specified in Carbon.xmlstatic longReturn the default realm cache timeout value (Mins) specified in Carbon.xml.static StringgetDistributedMapNameOfCache(String cacheName, String ownerTenantDomain, String cacheManagerName) Get map name of a cache in the distributed map providerstatic Stringstatic booleanReturn the cache invalidation message propagation enabled or not.
-
Method Details
-
checkAccess
-
getDistributedMapNameOfCache
public static String getDistributedMapNameOfCache(String cacheName, String ownerTenantDomain, String cacheManagerName) Get map name of a cache in the distributed map provider- Parameters:
cacheName- name of the cacheownerTenantDomain- owner tenant domain of the cache managercacheManagerName- name of the cache manager- Returns:
- the distributed map name
-
getTenantDomain
-
getDefaultCacheTimeout
public static long getDefaultCacheTimeout()Return the default cache timeout value (Mins) specified in Carbon.xml- Returns:
- long
-
getDefaultRealmCacheTimeout
public static long getDefaultRealmCacheTimeout()Return the default realm cache timeout value (Mins) specified in Carbon.xml.- Returns:
- default realm cache timeout in mins.
-
createCacheInfo
Returnn the CacheInfo Object from CacheEntry- Parameters:
cacheEntryEvent- CacheEntryEvent- Returns:
- CacheInfo
-
getCacheInvalidationRequestSender
Return CacheInvalidationRequestSender Configured- Returns:
- CacheInvalidationRequestSender implementation
-
isCacheInvalidationPropagationEnabled
public static boolean isCacheInvalidationPropagationEnabled()Return the cache invalidation message propagation enabled or not.- Returns:
- boolean.
-