首页 > 系统服务 > 详细

Ehcache BlockingCache 源码分析

时间:2015-02-13 11:32:00      阅读:308      评论:0      收藏:0      [点我收藏+]

BlockingCache是对Ehcache进行的扩展,BlockingCache内置了读写锁,不需要用户显示调用。

要彻底分析BlockingCache的原理,需要首先来看一下它内部用到的一些类。

public interface CacheLockProvider {

    /**
     * Gets the Sync Stripe to use for a given key.
     * <p/>
     * This lookup must always return the same Sync for a given key.
     * <p/>
     * @param key the key
     * @return one of a limited number of Sync‘s.
     */
    Sync getSyncForKey(Object key);
}

 

Ehcache BlockingCache 源码分析

原文:http://www.cnblogs.com/daxin/p/4289928.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!