Example usage for org.springframework.integration.expression ReloadableResourceBundleExpressionSource setCacheSeconds

List of usage examples for org.springframework.integration.expression ReloadableResourceBundleExpressionSource setCacheSeconds

Introduction

In this page you can find the example usage for org.springframework.integration.expression ReloadableResourceBundleExpressionSource setCacheSeconds.

Prototype

public void setCacheSeconds(int cacheSeconds) 

Source Link

Document

Set the number of seconds to cache loaded properties files.

Usage

From source file:com.apress.prospringintegration.messageflow.filter.FilterConfiguration.java

@Bean
public ReloadableResourceBundleExpressionSource filterRules() {
    ReloadableResourceBundleExpressionSource filterRules = new ReloadableResourceBundleExpressionSource();
    filterRules.setBasename("filter-rules");
    filterRules.setCacheSeconds(10);
    return filterRules;
}

From source file:com.apress.prospringintegration.messageflow.router.RouterConfiguration.java

@Bean
public ReloadableResourceBundleExpressionSource reloadableRouteExpressions() {
    ReloadableResourceBundleExpressionSource reloadableRouteExpressions = new ReloadableResourceBundleExpressionSource();
    reloadableRouteExpressions.setBasename("router-expressions");
    reloadableRouteExpressions.setCacheSeconds(10);
    return reloadableRouteExpressions;
}