|
eXo Kernel :: Cache Extension :: Infinispan Implementation 2.5.1-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.cache.impl.infinispan.generic.GenericExoCacheCreator
public class GenericExoCacheCreator
The generic ExoCacheCreator for all the expiration available in infinispan.
| Nested Class Summary | |
|---|---|
static class |
GenericExoCacheCreator.GenericExoCache
The Generic implementation of an ExoCache |
| Field Summary | |
|---|---|
protected long |
defaultMaxIdle
The default value for maxIdle |
protected String |
defaultStrategy
The default value for the eviction strategy |
protected long |
defaultWakeUpInterval
The default value for wakeUpInterval |
protected Set<String> |
implementations
A set of all the implementations supported by this creator |
| Constructor Summary | |
|---|---|
GenericExoCacheCreator()
|
|
| Method Summary | |
|---|---|
ExoCache<Serializable,Object> |
create(ExoCacheConfig config,
org.infinispan.configuration.cache.ConfigurationBuilder confBuilder,
Callable<org.infinispan.Cache<Serializable,Object>> cacheGetter)
Creates an eXo cache according to the given configuration ExoCacheConfig |
Class<? extends ExoCacheConfig> |
getExpectedConfigType()
Returns the type of ExoCacheConfig expected by the creator |
Set<String> |
getExpectedImplementations()
Returns a set of all the implementations expected by the creator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String defaultStrategy
protected long defaultMaxIdle
protected long defaultWakeUpInterval
protected Set<String> implementations
| Constructor Detail |
|---|
public GenericExoCacheCreator()
| Method Detail |
|---|
public Set<String> getExpectedImplementations()
getExpectedImplementations in interface ExoCacheCreatorpublic Class<? extends ExoCacheConfig> getExpectedConfigType()
ExoCacheConfig expected by the creator
getExpectedConfigType in interface ExoCacheCreator
public ExoCache<Serializable,Object> create(ExoCacheConfig config,
org.infinispan.configuration.cache.ConfigurationBuilder confBuilder,
Callable<org.infinispan.Cache<Serializable,Object>> cacheGetter)
throws ExoCacheInitException
ExoCacheConfig
create in interface ExoCacheCreatorconfig - the configuration of the cache to applyconfBuilder - the configuration builder of the infinispan cachecacheGetter - a Callable instance from which we can get the cache
ExoCacheInitException - if an exception happens while initializing the cache
|
eXo Kernel :: Cache Extension :: Infinispan Implementation 2.5.1-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||