Interface WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
WeatherEndpointBuilderFactory.AdvancedWeatherEndpointBuilder
- Enclosing interface:
WeatherEndpointBuilderFactory
public static interface WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Advanced builder for endpoint producers for the Weather component.
-
Method Summary
Modifier and TypeMethodDescriptionbasic()
geoLocationProvider
(String geoLocationProvider) A custum geolocation provider to determine the longitude and latitude to use when no location information is set.geoLocationProvider
(org.apache.camel.component.weather.geolocation.GeoLocationProvider geoLocationProvider) A custum geolocation provider to determine the longitude and latitude to use when no location information is set.httpClient
(String httpClient) To use an existing configured http client (for example with http proxy).httpClient
(org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient) To use an existing configured http client (for example with http proxy).lazyStartProducer
(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).lazyStartProducer
(String lazyStartProducer) Whether the producer should be started lazy (on the first message).Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
basic
-
lazyStartProducer
default WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder lazyStartProducer(String lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to a <code>boolean</code> type. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
geoLocationProvider
default WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder geoLocationProvider(org.apache.camel.component.weather.geolocation.GeoLocationProvider geoLocationProvider) A custum geolocation provider to determine the longitude and latitude to use when no location information is set. The default implementaion uses the ipstack API and requires geolocationAccessKey and geolocationRequestHostIP. The option is a: <code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code> type. Group: advanced- Parameters:
geoLocationProvider
- the value to set- Returns:
- the dsl builder
-
geoLocationProvider
default WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder geoLocationProvider(String geoLocationProvider) A custum geolocation provider to determine the longitude and latitude to use when no location information is set. The default implementaion uses the ipstack API and requires geolocationAccessKey and geolocationRequestHostIP. The option will be converted to a <code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code> type. Group: advanced- Parameters:
geoLocationProvider
- the value to set- Returns:
- the dsl builder
-
httpClient
default WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder httpClient(org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient) To use an existing configured http client (for example with http proxy). The option is a: <code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type. Group: advanced- Parameters:
httpClient
- the value to set- Returns:
- the dsl builder
-
httpClient
default WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder httpClient(String httpClient) To use an existing configured http client (for example with http proxy). The option will be converted to a <code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type. Group: advanced- Parameters:
httpClient
- the value to set- Returns:
- the dsl builder
-