ehcache

net.sf.ehcache.constructs.nonstop
Class CacheManagerExecutorServiceFactory

java.lang.Object
  extended by net.sf.ehcache.constructs.nonstop.CacheManagerExecutorServiceFactory
All Implemented Interfaces:
NonstopExecutorServiceFactory

public final class CacheManagerExecutorServiceFactory
extends Object
implements NonstopExecutorServiceFactory

NonstopExecutorServiceFactory that creates and maintains one per CacheManager

Author:
Abhishek Sanoujam

Method Summary
static CacheManagerExecutorServiceFactory getInstance()
          Returns the singleton instance
 NonstopExecutorService getOrCreateNonstopExecutorService(CacheManager cacheManager)
          Creates a NonstopExecutorService and returns it if not already created
 void shutdown(CacheManager cacheManager)
          Shuts down the NonstopExecutorService associated with the CacheManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CacheManagerExecutorServiceFactory getInstance()
Returns the singleton instance

Returns:
the singleton instance

getOrCreateNonstopExecutorService

public NonstopExecutorService getOrCreateNonstopExecutorService(CacheManager cacheManager)
Creates a NonstopExecutorService and returns it if not already created

Specified by:
getOrCreateNonstopExecutorService in interface NonstopExecutorServiceFactory
Parameters:
cacheManager - the CacheManager
Returns:
A NonstopExecutorService

shutdown

public void shutdown(CacheManager cacheManager)
Shuts down the NonstopExecutorService associated with the CacheManager

Specified by:
shutdown in interface NonstopExecutorServiceFactory

ehcache

Copyright © 2003-2012 Terracotta, Inc.. All Rights Reserved.