public final class DeferServiceFactory extends Object
Producer
s
and defer starting the created service, until CamelContext
has been started.Modifier and Type | Method and Description |
---|---|
static Producer |
createProducer(Endpoint endpoint)
Creates the
Producer which is deferred started until CamelContext is being started. |
public static Producer createProducer(Endpoint endpoint) throws Exception
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.endpoint
- the endpointCamelContext
has been startedException
- can be thrown if there is an error starting the producerDeferProducer
Apache Camel