Package org.springframework.scheduling.concurrent

Examples of org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.afterPropertiesSet()


    context.getBeanFactory().registerSingleton(IntegrationUtils.INTEGRATION_MESSAGE_BUILDER_FACTORY_BEAN_NAME,
        new DefaultMessageBuilderFactory());
    DefaultHeaderChannelRegistry channelRegistry = new DefaultHeaderChannelRegistry();
    channelRegistry.setReaperDelay(Long.MAX_VALUE);
    ThreadPoolTaskScheduler taskScheduler = new ThreadPoolTaskScheduler();
    taskScheduler.afterPropertiesSet();
    channelRegistry.setTaskScheduler(taskScheduler);
    context.getBeanFactory().registerSingleton(
        IntegrationContextUtils.INTEGRATION_HEADER_CHANNEL_REGISTRY_BEAN_NAME,
        channelRegistry);
    context.refresh();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.