A repository source that uses an Infinispan instance to manage the content. This source is capable of using an existing
CacheManager or creating a new cache manager. This process is controlled entirely by the JavaBean properties of the
InfinispanSource instance.

This source first attempts to find an existing cache manager found in JNDI (or the
DefaultCacheManager if no such manager is available) and the cache configuration
name if supplied or the default configuration if not set.

Like other RepositorySource classes, instances of JBossCacheSource can be placed into JNDI and do support the creation
of JNDI referenceable objects and resolution of references into JBossCacheSource.

setCacheConfigurationName(String cacheConfigurationName)
Get the name of the configuration that should be used if a cache is to be created using the
CacheManager found in JNDI or the DefaultCacheManager if needed.

void

setCacheManagerJndiName(String jndiName)
Set the name in JNDI of a CacheManager instance that should be used to obtain the Cache instance used by
this source.

getRetryLimit

public int getRetryLimit()

Get the maximum number of retries that may be performed on a given operation when using connections created by this source. This value does not constitute a minimum number of retries; in fact, the connection
user is not required to retry any operations.

setRetryLimit

public void setRetryLimit(int limit)

Set the maximum number of retries that may be performed on a given operation when using connections created by this source. This value does not constitute a minimum number of retries; in fact, the connection
user is not required to retry any operations.

getCacheManagerJndiName

Get the name in JNDI of a CacheManager instance that should be used to create the cache for this source.

This source first attempts to find a cache instance using the CacheManager found in
JNDI (or the DefaultCacheManager if no such manager is available) and the
cache configuration name if supplied or the default configuration if not set.

Returns:

the JNDI name of the CacheManager instance that should be used, or null if the DefaultCacheManager
should be used if a cache is to be created

setCacheManagerJndiName

Set the name in JNDI of a CacheManager instance that should be used to obtain the Cache instance used by
this source.

This source first attempts to find a cache instance using the CacheManager found in
JNDI (or the DefaultCacheManager if no such manager is available) and the
cache configuration name if supplied or the default configuration if not set.

Parameters:

jndiName - the JNDI name of the CacheManager instance that should be used, or null if the
DefaultCacheManager should be used if a cache is to be created

getCacheConfigurationName

Get the name of the configuration that should be used if a cache is to be created using the
CacheManager found in JNDI or the DefaultCacheManager if needed.

This source first attempts to find a cache instance using the CacheManager found in
JNDI (or the DefaultCacheManager if no such manager is available) and the
cache configuration name if supplied or the default configuration if not set.

Returns:

the name of the configuration that should be passed to the CacheManager, or null if the default
configuration should be used

setCacheConfigurationName

Get the name of the configuration that should be used if a cache is to be created using the
CacheManager found in JNDI or the DefaultCacheManager if needed.

This source first attempts to find a cache instance using the CacheManager found in
JNDI (or the DefaultCacheManager if no such manager is available) and the
cache configuration name if supplied or the default configuration if not set.

Parameters:

cacheConfigurationName - the name of the configuration that should be passed to the CacheManager, or null if
the default configuration should be used

close

public void close()

Signal this source that it is no longer needed and should begin the process of reclaiming or closing all resources that it
has acquired. Because connections may still be in use, this method may not necessarily close all
resources immediately.

This is a required method, and must be called when this source is no longer needed if one or more connections have been obtained since the previous call to this method.

Note that calling this method also does not preclude obtaining more connections after this method
is called. If that happens, this source should simply reacquire any resources necessary to provide additional connections,
and this method needs to be called once again.