* @param cacheName
* @return The clusterListeners value
*/
protected CacheListeners getClusterListeners( String cacheName )
{
CacheListeners cacheListeners = (CacheListeners) clusterListenersMap.get( cacheName );
synchronized ( clusterListenersMap )
{
if ( cacheListeners == null )
{
cacheListeners = (CacheListeners) clusterListenersMap.get( cacheName );
if ( cacheListeners == null )
{
cacheListeners = new CacheListeners( cacheManager.getCache( cacheName ) );
clusterListenersMap.put( cacheName, cacheListeners );
}
}
}
return cacheListeners;