eXo Kernel :: Cache Extension :: JBoss Cache Implementation 2.4.5-GA

org.exoplatform.services.cache.impl.jboss.ea
Class EAExoCacheCreator

java.lang.Object
  extended by org.exoplatform.services.cache.impl.jboss.AbstractExoCacheCreator
      extended by org.exoplatform.services.cache.impl.jboss.ea.EAExoCacheCreator
All Implemented Interfaces:
ExoCacheCreator

public class EAExoCacheCreator
extends AbstractExoCacheCreator

The ExpirationAlgorithm Implementation of an ExoCacheCreator Created by The eXo Platform SAS Author : Nicolas Filotto nicolas.filotto@exoplatform.com 8 mars 2010


Nested Class Summary
static class EAExoCacheCreator.EAExoCache
          The ExpirationAlgorithm implementation of an ExoCache
 
Field Summary
protected  long defaultExpirationTimeout
          The default value for the parameter expirationTimeout
static String EXPECTED_IMPL
          The expected implementation name
 
Constructor Summary
EAExoCacheCreator()
           
 
Method Summary
 ExoCache<Serializable,Object> create(ExoCacheConfig config, org.jboss.cache.Cache<Serializable,Object> cache)
          Creates an eXo cache according to the given configuration ExoCacheConfig
 Class<? extends ExoCacheConfig> getExpectedConfigType()
          Returns the type of ExoCacheConfig expected by the creator
 String getExpectedImplementation()
          Returns the name of the implementation expected by the creator.
 
Methods inherited from class org.exoplatform.services.cache.impl.jboss.AbstractExoCacheCreator
addEvictionRegion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPECTED_IMPL

public static final String EXPECTED_IMPL
The expected implementation name

See Also:
Constant Field Values

defaultExpirationTimeout

protected long defaultExpirationTimeout
The default value for the parameter expirationTimeout

Constructor Detail

EAExoCacheCreator

public EAExoCacheCreator()
Method Detail

getExpectedImplementation

public String getExpectedImplementation()
Returns the name of the implementation expected by the creator. This is mainly used to be backward compatible

Returns:
the expected by the creator

getExpectedConfigType

public Class<? extends ExoCacheConfig> getExpectedConfigType()
Returns the type of ExoCacheConfig expected by the creator

Returns:
the expected type

create

public ExoCache<Serializable,Object> create(ExoCacheConfig config,
                                            org.jboss.cache.Cache<Serializable,Object> cache)
                                     throws ExoCacheInitException
Creates an eXo cache according to the given configuration ExoCacheConfig

Parameters:
config - the configuration of the cache to apply
cache - the cache to initialize
Throws:
ExoCacheInitException - if an exception happens while initializing the cache

eXo Kernel :: Cache Extension :: JBoss Cache Implementation 2.4.5-GA

Copyright © 2013 eXo Platform SAS. All Rights Reserved.