org.wso2.carbon.registry.core.caching
Class PathCache

java.lang.Object
  extended by 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.
 
Constructor Summary
PathCache()
           
 
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
 

Field Detail

PATH_CACHE

protected static final net.sf.jsr107cache.Cache PATH_CACHE
The path cache.

Constructor Detail

PathCache

public PathCache()
Method Detail

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.