Interface DeferServiceFactory


public interface DeferServiceFactory
Factory to create services such as Producers and defer starting the created service, until CamelContext has been started.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Service factory key.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates the Producer which is deferred started until CamelContext is being started.
  • Field Details

  • Method Details

    • createProducer

      Producer createProducer(Endpoint endpoint) throws Exception
      Creates the Producer which is deferred started until CamelContext is being started.

      When the producer is started, it re-lookup the endpoint to capture any changes such as the endpoint has been intercepted. This allows the producer to react and send messages to the updated endpoint.

      Parameters:
      endpoint - the endpoint
      Returns:
      the producer which will be deferred started until CamelContext has been started
      Throws:
      Exception - can be thrown if there is an error starting the producer