Package de.cxp.ocs.config
Class RefreshSchedulerConfig
java.lang.Object
de.cxp.ocs.config.RefreshSchedulerConfig
@Component
@Configuration
@EnableScheduling
@ConditionalOnProperty(name="ocs.scheduler.enabled")
public class RefreshSchedulerConfig
extends Object
Schedulers to refresh configuration regularly.
set property 'ocs.scheduler.enabled=false' to disable completely.
To enable refresh config, set the property 'ocs.scheduler.enabled.refresh-config=true'. The property 'ocs.scheduler.refresh-config-delay-ms' can be set to configure the fixed delay between each refresh (defaults to 60000 = 1 minute)
To enable context refreshing, set the property 'ocs.scheduler.enabled.refresh-context=true'. The property 'ocs.scheduler.refresh-context-delay-ms' can be set to configure the fixed delay between each refresh (defaults to 60000 = 1 minute)
Be careful about this configuration, since activating both schedulers leads to an endless reloading of everything.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RefreshSchedulerConfig
public RefreshSchedulerConfig()
-
-
Method Details
-
searchControllerRefreshConfigs
@Scheduled(fixedDelayString="${ocs.scheduler.refresh-config-delay-ms:60000}") public void searchControllerRefreshConfigs() -
refreshContext
@Scheduled(fixedDelayString="${ocs.scheduler.refresh-context-delay-ms:60000}") public void refreshContext()
-