git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14918 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Brian Stansberry 2008-07-10 19:36:02 +00:00
parent a7c7ba3fc7
commit 6d1d3809a8
4 changed files with 16 additions and 13 deletions

View File

@ -33,9 +33,9 @@ import org.hibernate.cache.jbc2.builder.JndiMultiplexingCacheInstanceManager;
* {@link #getCacheInstanceManager() CacheInstanceManager}.
* <p>
* Supports separate JBoss Cache instances for entity, collection, query
* and timestamp caching, with the expectation that a single multiplexed
* JGroups channel will be shared between the caches. JBoss Cache instances
* are created from a factory.
* and timestamp caching, with the expectation that a single multiplexed JGroups
* resource (i.e. a multiplexed channel or a shared transport channel) will be
* shared between the caches. JBoss Cache instances are created from a factory.
* </p>
* <p>
* This version finds the factory in JNDI. See

View File

@ -33,9 +33,9 @@ import org.hibernate.cache.jbc2.builder.MultiplexingCacheInstanceManager;
* {@link #getCacheInstanceManager() CacheInstanceManager}.
* <p>
* Supports separate JBoss Cache instances for entity, collection, query
* and timestamp caching, with the expectation that a single multiplexed
* JGroups channel will be shared between the caches. JBoss Cache instances
* are created from a factory.
* and timestamp caching, with the expectation that a single JGroups resource
* (i.e. a multiplexed channel or a shared transport channel) will be shared
* between the caches. JBoss Cache instances are created from a factory.
* </p>
* <p>
* This version instantiates the factory itself. See

View File

@ -44,9 +44,10 @@ import org.hibernate.transaction.TransactionManagerLookup;
import org.hibernate.util.PropertiesHelper;
/**
* Allows building separate {@link Cache} instances for each type of region, but
* supports using the JGroups multiplexer under the covers to re-use the same group
* communication stack. <p/>
* Allows building separate {@link Cache} instances for each type of region,
* with the expectation that a single multiplexed JGroups resource (i.e. a
* multiplexed channel or a shared transport channel) will be shared between
* the caches.<p/>
*
* @author Steve Ebersole
* @author Brian Stansberry

View File

@ -42,12 +42,14 @@ import org.hibernate.cfg.Settings;
import org.hibernate.util.PropertiesHelper;
/**
* A {@link CacheInstanceManager} implementation where we use a single cache
* instance we assume to be configured for invalidation if operating on a
* cluster. Under that assumption, we can store all data into the same
* {@link Cache} instance.
* A {@link CacheInstanceManager} implementation where we use a single JBoss Cache
* instance for each type of region. If operating on a cluster, the cache must
* be configured for REPL_SYNC if query caching is enabled. If query caching
* is not used, REPL_SYNC or INVALIDATION_SYNC are valid, with
* INVALIDATION_SYNC preferred.
*
* @author Steve Ebersole
* @author Brian Stansberry
*/
public class SharedCacheInstanceManager implements CacheInstanceManager {