org.wso2.carbon.registry.core.caching
Class PathCache
java.lang.Object
org.wso2.carbon.registry.core.caching.PathCache
- Direct Known Subclasses:
- JDBCPathCache
public class PathCache
- extends Object
Implementation of caching for resource paths. This is based on Cache
. The path cache
instance will maintain a cache for registry paths. However, it is required to create an extension
of this class to actually access the cache.
Field Summary |
protected static net.sf.jsr107cache.Cache |
PATH_CACHE
The path cache. |
Method Summary |
static PathCache |
getPathCache()
Method to obtain the created path cache instance. |
double |
hitRate()
Method to get the cache hit rate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH_CACHE
protected static final net.sf.jsr107cache.Cache PATH_CACHE
- The path cache.
PathCache
public PathCache()
getPathCache
public static PathCache getPathCache()
- Method to obtain the created path cache instance. If the path cache instance has not been
created as yet, an instance will be created using the default settings.
- Returns:
- the created path cache instance
hitRate
public double hitRate()
- Method to get the cache hit rate.
- Returns:
- the cache hit rate.
Copyright © 2013 WSO2 Inc. All Rights Reserved.