09 2016 档案
Java Concurrency - ThreadFactory, 使用工厂方法创建线程
摘要:当需要创建多个类似的线程实例时,使用工厂模式替代 new 操作符创建线程,能使代码更为简洁,易于维护。JDK 提供了 java.util.concurrent.ThreadFactory 接口,ThreadFactory 只有一个方法 newThread,它接收一个 Runnable 参数,返回一个 阅读全文
posted @ 2016-09-28 16:45 huey2672 阅读(280) 评论(0) 推荐(0)
Java Concurrency - 线程的基础操作
摘要:创建线程 在 Java 中,创建线程有两种方式: 继承 java.lang.Thread 类,重写 run 方法。 public class MyJob extends Thread { @Override public void run() { System.out.println("Hello 阅读全文
posted @ 2016-09-24 16:55 huey2672 阅读(273) 评论(0) 推荐(0)
Ehcache(2.9.x) - Configuration Guide, Configuring Storage Tiers
摘要:About Storage Tiers Ehcache has three storage tiers, summarized here: Memory store – Heap memory that holds a copy of the hottest subset of data from 阅读全文
posted @ 2016-09-10 14:15 huey2672 阅读(472) 评论(0) 推荐(0)
Ehcache(2.9.x) - Configuration Guide, Configuring Cache
摘要:About Ehcache Configuration Ehcache supports declarative configuration via an XML configuration file, as well as programmatic configuration via class- 阅读全文
posted @ 2016-09-09 13:58 huey2672 阅读(507) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Class Loading
摘要:About Class Loading Class loading, within the plethora of environments that Ehcache can be running, could be complex. But with Ehcache, all class load 阅读全文
posted @ 2016-09-06 21:44 huey2672 阅读(266) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Cache Eviction Algorithms
摘要:About Cache Eviction Algorithms A cache eviction algorithm is a way of deciding which element to evict when the cache is full. In Ehcache , the memory 阅读全文
posted @ 2016-09-06 21:39 huey2672 阅读(348) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Cache Extensions
摘要:About Cache Extensions Cache extensions are a general-purpose mechanism to allow generic extensions to a cache. Cache extensions are tied into the cac 阅读全文
posted @ 2016-09-06 21:02 huey2672 阅读(275) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Cache Decorators
摘要:About Cache Decorators Ehcache uses the Ehcache interface, of which Cache is an implementation. It is possible and encouraged to create Ehcache decora 阅读全文
posted @ 2016-09-06 20:32 huey2672 阅读(314) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Cache Exception Handlers
摘要:About Exception Handlers By default, most cache operations will propagate a runtime CacheException on failure. An interceptor, using a dynamic proxy, 阅读全文
posted @ 2016-09-06 20:11 huey2672 阅读(254) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Cache Event Listeners
摘要:About Cache Event Listeners Cache listeners allow implementers to register callback methods that will be executed when a cache event occurs. Cache lis 阅读全文
posted @ 2016-09-06 19:46 huey2672 阅读(756) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Cache Manager Event Listeners
摘要:About CacheManager Event Listeners CacheManager event listeners allow implementers to register callback methods that will be executed when a CacheMana 阅读全文
posted @ 2016-09-06 19:13 huey2672 阅读(369) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Cache Loaders
摘要:About Cache Loaders A CacheLoader is an interface that specifies load() and loadAll() methods with a variety of parameters. CacheLoaders are incorpora 阅读全文
posted @ 2016-09-06 13:34 huey2672 阅读(333) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Write-Through and Write-Behind Caches
摘要:About Write-Through and Write-Behind Caches Write-through caching is a caching pattern where writes to the cache cause writes to an underlying resourc 阅读全文
posted @ 2016-09-06 11:33 huey2672 阅读(474) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Transaction Support
摘要:About Transaction Support Transactions are supported in versions of Ehcache 2.0 and higher. The 2.3.x or lower releases only support XA. However since 阅读全文
posted @ 2016-09-05 21:03 huey2672 阅读(398) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Blocking and Self Populating Caches
摘要:About Blocking and Self-Populating Caches The net.sf.ehcache.constructs package contains some applied caching classes which use the core classes to so 阅读全文
posted @ 2016-09-03 17:05 huey2672 阅读(214) 评论(0) 推荐(0)
Ehcache(2.9.x) - API Developer Guide, Using Explicit Locking
摘要:About Explicit Locking Ehcache contains an implementation which provides for explicit locking, using read and write locks. With explicit locking, it i 阅读全文
posted @ 2016-09-03 15:59 huey2672 阅读(456) 评论(0) 推荐(0)