Class TimerRoute

  • All Implemented Interfaces:
    org.apache.camel.Ordered, org.apache.camel.RoutesBuilder

    @Service
    public class TimerRoute
    extends org.apache.camel.builder.RouteBuilder
    A RouteBuilder demonstrating the use of Spring Dependency Injection.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Counter counter
      An injected bean
      (package private) String period
      timer.period is defined in src/main/resources/application.properties
      • Fields inherited from class org.apache.camel.builder.RouteBuilder

        log
      • Fields inherited from interface org.apache.camel.Ordered

        HIGHEST, LOWEST
    • Constructor Summary

      Constructors 
      Constructor Description
      TimerRoute()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure()  
      • Methods inherited from class org.apache.camel.builder.RouteBuilder

        addLifecycleInterceptor, addRoutes, addRoutesToCamelContext, bindToRegistry, bindToRegistry, checkInitialized, configureRest, configureRests, configureRoute, configureRoutes, errorHandler, from, from, from, fromF, getOrder, getRestCollection, getRestConfiguration, getRouteCollection, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, populateRests, populateRoutes, populateTransformers, populateValidators, propertyInject, removeLifecycleInterceptor, rest, rest, restConfiguration, setErrorHandlerBuilder, setRestCollection, setRouteCollection, toString, transformer, validator
      • Methods inherited from class org.apache.camel.builder.BuilderSupport

        body, bodyAs, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, exchangeProperty, getContext, getErrorHandlerBuilder, header, jsonpath, jsonpath, method, method, method, method, noErrorHandler, regexReplaceAll, regexReplaceAll, setContext, simple, simple, simpleF, simpleF, systemProperty, systemProperty, xpath, xpath, xpath, xpath
    • Field Detail

      • period

        @Value("timer.period")
        String period
        timer.period is defined in src/main/resources/application.properties
      • counter

        @Autowired
        Counter counter
        An injected bean
    • Constructor Detail

      • TimerRoute

        public TimerRoute()
    • Method Detail

      • configure

        public void configure()
                       throws Exception
        Specified by:
        configure in class org.apache.camel.builder.RouteBuilder
        Throws:
        Exception