public class JndiInfinispanRegionFactory extends InfinispanRegionFactory
RegionFactory
for Infinispan-backed cache
regions that finds its cache manager in JNDI rather than creating one itself.InfinispanRegionFactory.DataType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHE_MANAGER_RESOURCE_PROP
Specifies the JNDI name under which the
EmbeddedCacheManager to use is bound. |
baseConfigurations, COLLECTION_CACHE_RESOURCE_PROP, configOverrides, DEF_ENTITY_RESOURCE, DEF_INFINISPAN_CONFIG_RESOURCE, DEF_PENDING_PUTS_RESOURCE, DEF_QUERY_RESOURCE, DEF_TIMESTAMPS_RESOURCE, DEF_USE_SYNCHRONIZATION, ENTITY_CACHE_RESOURCE_PROP, IMMUTABLE_ENTITY_CACHE_RESOURCE_PROP, INFINISPAN_CONFIG_LOCAL_RESOURCE, INFINISPAN_CONFIG_RESOURCE_PROP, INFINISPAN_GLOBAL_STATISTICS_PROP, INFINISPAN_USE_SYNCHRONIZATION_PROP, NATURAL_ID_CACHE_RESOURCE_PROP, PENDING_PUTS_CACHE_NAME, PENDING_PUTS_CACHE_RESOURCE_PROP, QUERY_CACHE_RESOURCE_PROP, TIMESTAMPS_CACHE_RESOURCE_PROP
Constructor and Description |
---|
JndiInfinispanRegionFactory()
Constructs a JndiInfinispanRegionFactory
|
JndiInfinispanRegionFactory(java.util.Properties props)
Constructs a JndiInfinispanRegionFactory
|
Modifier and Type | Method and Description |
---|---|
protected org.infinispan.manager.EmbeddedCacheManager |
createCacheManager(java.util.Properties properties,
ServiceRegistry serviceRegistry) |
void |
stop()
Lifecycle callback to perform any necessary cleanup of the underlying
cache implementation(s).
|
buildCollectionRegion, buildCollectionRegion, buildEntityRegion, buildEntityRegion, buildNaturalIdRegion, buildNaturalIdRegion, buildQueryResultsRegion, buildQueryResultsRegion, buildTimestampsRegion, buildTimestampsRegion, createCacheManager, createCacheWrapper, createTimestampsRegion, createTransactionManagerLookup, getCache, getCacheManager, getDefaultAccessType, getPendingPutsCacheConfiguration, isMinimalPutsEnabledByDefault, nextTimestamp, setCacheManager, start, stopCacheManager, stopCacheRegions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start
public static final java.lang.String CACHE_MANAGER_RESOURCE_PROP
EmbeddedCacheManager
to use is bound.
There is no default value -- the user must specify the property.public JndiInfinispanRegionFactory()
public JndiInfinispanRegionFactory(java.util.Properties props)
props
- Any properties to apply (not used).protected org.infinispan.manager.EmbeddedCacheManager createCacheManager(java.util.Properties properties, ServiceRegistry serviceRegistry) throws CacheException
createCacheManager
in class InfinispanRegionFactory
CacheException
public void stop()
RegionFactory
SessionFactory.close()
.stop
in interface RegionFactory
stop
in class InfinispanRegionFactory
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.