/** * Returns a read-only cache {@link EventJournal} * configuration for the given name. * <p> * The name is matched by pattern to the configuration and by stripping the * partition ID qualifier from the given {@code name}. * If there is no config found by the name, it will return the configuration * with the name {@code default}. * * @param name name of the cache event journal config * @return the cache event journal configuration * @throws ConfigurationException if ambiguous configurations are found * @see StringPartitioningStrategy#getBaseName(java.lang.String) * @see #setConfigPatternMatcher(ConfigPatternMatcher) * @see #getConfigPatternMatcher() * @see EvictionConfig#setSize(int) */ public EventJournalConfig findCacheEventJournalConfig(String name) { name = getBaseName(name); final EventJournalConfig config = lookupByPattern(configPatternMatcher, cacheEventJournalConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getCacheEventJournalConfig("default").getAsReadOnly(); }
/** * Returns a read-only map {@link EventJournal} * configuration for the given name. * <p> * The name is matched by pattern to the configuration and by stripping the * partition ID qualifier from the given {@code name}. * If there is no config found by the name, it will return the configuration * with the name {@code default}. * * @param name name of the map event journal config * @return the map event journal configuration * @throws ConfigurationException if ambiguous configurations are found * @see StringPartitioningStrategy#getBaseName(java.lang.String) * @see #setConfigPatternMatcher(ConfigPatternMatcher) * @see #getConfigPatternMatcher() * @see EvictionConfig#setSize(int) */ public EventJournalConfig findMapEventJournalConfig(String name) { name = getBaseName(name); final EventJournalConfig config = lookupByPattern(configPatternMatcher, mapEventJournalConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getMapEventJournalConfig("default").getAsReadOnly(); }
/** * Returns a read-only map {@link EventJournal} * configuration for the given name. * <p> * The name is matched by pattern to the configuration and by stripping the * partition ID qualifier from the given {@code name}. * If there is no config found by the name, it will return the configuration * with the name {@code default}. * * @param name name of the map event journal config * @return the map event journal configuration * @throws ConfigurationException if ambiguous configurations are found * @see StringPartitioningStrategy#getBaseName(java.lang.String) * @see #setConfigPatternMatcher(ConfigPatternMatcher) * @see #getConfigPatternMatcher() * @see EvictionConfig#setSize(int) */ public EventJournalConfig findMapEventJournalConfig(String name) { name = getBaseName(name); final EventJournalConfig config = lookupByPattern(configPatternMatcher, mapEventJournalConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getMapEventJournalConfig("default").getAsReadOnly(); }
/** * Returns a read-only cache {@link EventJournal} * configuration for the given name. * <p> * The name is matched by pattern to the configuration and by stripping the * partition ID qualifier from the given {@code name}. * If there is no config found by the name, it will return the configuration * with the name {@code default}. * * @param name name of the cache event journal config * @return the cache event journal configuration * @throws ConfigurationException if ambiguous configurations are found * @see StringPartitioningStrategy#getBaseName(java.lang.String) * @see #setConfigPatternMatcher(ConfigPatternMatcher) * @see #getConfigPatternMatcher() * @see EvictionConfig#setSize(int) */ public EventJournalConfig findCacheEventJournalConfig(String name) { name = getBaseName(name); final EventJournalConfig config = lookupByPattern(configPatternMatcher, cacheEventJournalConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getCacheEventJournalConfig("default").getAsReadOnly(); }