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.


Constructor Summary
PathCache()
           
 
Method Summary
protected static javax.cache.Cache<RegistryCacheKey,RegistryCacheEntry> getCache()
          The path cache.
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
 

Constructor Detail

PathCache

public PathCache()
Method Detail

getCache

protected static javax.cache.Cache<RegistryCacheKey,RegistryCacheEntry> getCache()
The path cache.


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 © 2014 WSO2 Inc. All Rights Reserved.