/** * setLoggingEnabled * * @param enable */ public void setLoggingEnabled(boolean enable) { cacheConfiguration.setLogging(enable); } /**
/** * Builder to enable or disable logging for the cache * <p> * This property can be modified dynamically while the cache is operating. * Only used when cache is clustered with Terracotta * * @param enable If true, enables logging otherwise disables logging * @return this configuration instance * @see #setLogging(boolean) */ public final CacheConfiguration logging(boolean enable) { setLogging(enable); return this; }
/** * {@inheritDoc} */ public void setRegionCacheLoggingEnabled(String region, boolean loggingEnabled) { Cache cache = this.cacheManager.getCache(region); if (cache != null) { cache.getCacheConfiguration().setLogging(loggingEnabled); sendNotification(CACHE_REGION_CHANGED, getRegionCacheAttributes(region), region); } }
/** * {@inheritDoc} */ @Override public void setLoggingEnabled(boolean enabled) { if (isLoggingEnabled() != enabled) { try { cache.getCacheConfiguration().setLogging(enabled); } catch (RuntimeException e) { throw Utils.newPlainException(e); } } }
/** * setLoggingEnabled * * @param enable */ public void setLoggingEnabled(boolean enable) { cacheConfiguration.setLogging(enable); } /**
/** * setLoggingEnabled * * @param enable */ public void setLoggingEnabled(boolean enable) { cacheConfiguration.setLogging(enable); } /**
/** * setLoggingEnabled * * @param enable */ public void setLoggingEnabled(boolean enable) { cacheConfiguration.setLogging(enable); } /**
/** * Builder to enable or disable logging for the cache * <p/> * This property can be modified dynamically while the cache is operating. * Only used when cache is clustered with Terracotta * * @param enable If true, enables logging otherwise disables logging * @return this configuration instance * @see #setLogging(boolean) */ public final CacheConfiguration logging(boolean enable) { setLogging(enable); return this; }
/** * Builder to enable or disable logging for the cache * <p/> * This property can be modified dynamically while the cache is operating. * Only used when cache is clustered with Terracotta * * @param enable If true, enables logging otherwise disables logging * @return this configuration instance * @see #setLogging(boolean) */ public final CacheConfiguration logging(boolean enable) { setLogging(enable); return this; }
/** * Builder to enable or disable logging for the cache * <p> * This property can be modified dynamically while the cache is operating. * Only used when cache is clustered with Terracotta * * @param enable If true, enables logging otherwise disables logging * @return this configuration instance * @see #setLogging(boolean) */ public final CacheConfiguration logging(boolean enable) { setLogging(enable); return this; }
/** * {@inheritDoc} */ public void setRegionCacheLoggingEnabled(String region, boolean loggingEnabled) { Cache cache = this.cacheManager.getCache(region); if (cache != null) { cache.getCacheConfiguration().setLogging(loggingEnabled); sendNotification(CACHE_REGION_CHANGED, getRegionCacheAttributes(region), region); } }
/** * {@inheritDoc} */ public void setRegionCacheLoggingEnabled(String region, boolean loggingEnabled) { Cache cache = this.cacheManager.getCache(region); if (cache != null) { cache.getCacheConfiguration().setLogging(loggingEnabled); sendNotification(CACHE_REGION_CHANGED, getRegionCacheAttributes(region), region); } }
/** * {@inheritDoc} */ public void setRegionCacheLoggingEnabled(String region, boolean loggingEnabled) { Cache cache = this.cacheManager.getCache(region); if (cache != null) { cache.getCacheConfiguration().setLogging(loggingEnabled); sendNotification(CACHE_REGION_CHANGED, getRegionCacheAttributes(region), region); } }
/** * {@inheritDoc} */ public void setLoggingEnabled(boolean enabled) { if (isLoggingEnabled() != enabled) { try { cache.getCacheConfiguration().setLogging(enabled); } catch (RuntimeException e) { throw Utils.newPlainException(e); } } }
/** * {@inheritDoc} */ @Override public void setLoggingEnabled(boolean enabled) { if (isLoggingEnabled() != enabled) { try { cache.getCacheConfiguration().setLogging(enabled); } catch (RuntimeException e) { throw Utils.newPlainException(e); } } }
/** * {@inheritDoc} */ @Override public void setLoggingEnabled(boolean enabled) { if (isLoggingEnabled() != enabled) { try { cache.getCacheConfiguration().setLogging(enabled); } catch (RuntimeException e) { throw Utils.newPlainException(e); } } }