/** * Initializes the flex cache configuration with required parameters.<p> * * @param enabled enables or disable the flexcache * @param offline enable the flexcache for the offline project * @param maxCacheBytes the max bytes for cache * @param avgCacheBytes the average bytes for cache * @param maxEntryBytes the max bytes for entry * @param maxKeys the max keys */ public void initialize( String enabled, String offline, String maxCacheBytes, String avgCacheBytes, String maxEntryBytes, String maxKeys) { setCacheEnabled(Boolean.valueOf(enabled).booleanValue()); setCacheOffline(Boolean.valueOf(offline).booleanValue()); setMaxCacheBytes(Long.parseLong(maxCacheBytes)); setAvgCacheBytes(Long.parseLong(avgCacheBytes)); setMaxEntryBytes(Integer.parseInt(maxEntryBytes)); setMaxKeys(Integer.parseInt(maxKeys)); }
/** * Initializes the flex cache configuration with required parameters.<p> * * @param enabled enables or disable the flexcache * @param offline enable the flexcache for the offline project * @param maxCacheBytes the max bytes for cache * @param avgCacheBytes the average bytes for cache * @param maxEntryBytes the max bytes for entry * @param maxKeys the max keys */ public void initialize( String enabled, String offline, String maxCacheBytes, String avgCacheBytes, String maxEntryBytes, String maxKeys) { setCacheEnabled(Boolean.valueOf(enabled).booleanValue()); setCacheOffline(Boolean.valueOf(offline).booleanValue()); setMaxCacheBytes(Long.parseLong(maxCacheBytes)); setAvgCacheBytes(Long.parseLong(avgCacheBytes)); setMaxEntryBytes(Integer.parseInt(maxEntryBytes)); setMaxKeys(Integer.parseInt(maxKeys)); }