Examples of PollerMetadata


Examples of org.springframework.integration.scheduling.PollerMetadata

    return new ThreadPoolTaskScheduler();
  }

  @Bean
  public MessageBus messageBus() {
    PollerMetadata poller = new PollerMetadata();
    poller.setTaskExecutor(taskScheduler());
    LocalMessageBus bus = new LocalMessageBus();
    bus.setPoller(poller);
    return bus;
  }
View Full Code Here

Examples of org.springframework.integration.scheduling.PollerMetadata

    context.registerSingleton("taskScheduler", ThreadPoolTaskScheduler.class);
    context.registerSingleton(IntegrationUtils.INTEGRATION_MESSAGE_BUILDER_FACTORY_BEAN_NAME,
        DefaultMessageBuilderFactory.class);
    context.refresh();

    PollerMetadata poller = new PollerMetadata();
    poller.setTrigger(new PeriodicTrigger(1000));
    bus.setPoller(poller);
  }
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.