public class GenericExoCacheCreator extends Object implements ExoCacheCreator
ExoCacheCreator for all the expiration available in infinispan.| Modifier and Type | Class and Description |
|---|---|
static class |
GenericExoCacheCreator.GenericExoCache
The Generic implementation of an ExoCache
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
GenericExoCacheCreator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected String defaultStrategy
protected long defaultMaxIdle
protected long defaultWakeUpInterval
public Set<String> getExpectedImplementations()
getExpectedImplementations in interface ExoCacheCreatorpublic Class<? extends ExoCacheConfig> getExpectedConfigType()
ExoCacheConfig expected by the creatorgetExpectedConfigType in interface ExoCacheCreatorpublic ExoCache<Serializable,Object> create(ExoCacheConfig config, org.infinispan.configuration.cache.ConfigurationBuilder confBuilder, Callable<org.infinispan.Cache<Serializable,Object>> cacheGetter) throws ExoCacheInitException
ExoCacheConfigcreate 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 cacheExoCacheInitException - if an exception happens while initializing the cacheCopyright © 2017 eXo Platform SAS. All Rights Reserved.