org.esbtools.eventhandler.lightblue.config

Class PollingLightblueConfigUpdateRoute

  • java.lang.Object
    • org.apache.camel.builder.BuilderSupport
      • org.apache.camel.builder.RouteBuilder
        • org.esbtools.eventhandler.lightblue.config.PollingLightblueConfigUpdateRoute
  • All Implemented Interfaces:
    org.apache.camel.RoutesBuilder


    public class PollingLightblueConfigUpdateRoute
    extends org.apache.camel.builder.RouteBuilder
    Updates configuration from stored values in a lightblue instance.
    • Field Summary

      • Fields inherited from class org.apache.camel.builder.RouteBuilder

        log
    • Method Summary

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

        addRoutes, addRoutesToCamelContext, checkInitialized, configureRest, configureRests, configureRoute, configureRoutes, createContainer, errorHandler, from, from, from, from, fromF, getContext, getRestCollection, getRestConfigurations, getRouteCollection, includeRoutes, intercept, interceptFrom, interceptFrom, interceptSendToEndpoint, onCompletion, onException, onException, populateRests, populateRoutes, rest, rest, restConfiguration, restConfiguration, setErrorHandlerBuilder, setRestCollection, setRouteCollection, toString
      • Methods inherited from class org.apache.camel.builder.BuilderSupport

        bean, bean, bean, bean, body, body, bodyAs, constant, createErrorHandlerBuilder, deadLetterChannel, deadLetterChannel, defaultErrorHandler, endpoint, endpoint, endpoints, endpoints, exceptionMessage, exchangeProperty, faultBody, faultBodyAs, getErrorHandlerBuilder, header, language, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, loggingErrorHandler, method, method, method, method, noErrorHandler, outBody, outBody, property, regexReplaceAll, regexReplaceAll, sendTo, setContext, setContext, simple, simple, simpleF, simpleF, systemProperty, systemProperty, xpath, xpath
    • Constructor Detail

      • PollingLightblueConfigUpdateRoute

        public PollingLightblueConfigUpdateRoute(String configDomain,
                                                 java.time.Duration pollingInterval,
                                                 com.redhat.lightblue.client.LightblueClient lightblue,
                                                 MutableLightblueNotificationRepositoryConfig notificationRepositoryConfig,
                                                 MutableLightblueDocumentEventRepositoryConfig documentEventRepositoryConfig)
        Parameters:
        configDomain - See EventHandlerConfigEntity.setDomain(String)}. This is whatever you use when you persist your configuration.
        pollingInterval - How often to poll for configuration data stored in lightblue.
        lightblue - A lightblue client configured to talk to lightblue
        notificationRepositoryConfig - A thread-safe config object to update
        documentEventRepositoryConfig - A thread-safe config object to update
    • Method Detail

      • configure

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

Copyright © 2017. All rights reserved.