Interface GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointBuilder
- Enclosing interface:
GooglePubsubEndpointBuilderFactory
public static interface GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Advanced builder for endpoint producers for the Google Pubsub component.
-
Method Summary
Modifier and TypeMethodDescriptionbasic()headerFilterStrategy(String headerFilterStrategy) To use a custom HeaderFilterStrategy to filter headers to and from Camel message.headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom HeaderFilterStrategy to filter headers to and from Camel message.includeAllGoogleProperties(boolean includeAllGoogleProperties) Whether to include all Google headers when mapping from Pubsub to Camel Message.includeAllGoogleProperties(String includeAllGoogleProperties) Whether to include all Google headers when mapping from Pubsub to Camel Message.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).Deprecated.messageOrderingEnabled(boolean messageOrderingEnabled) Should message ordering be enabled.messageOrderingEnabled(String messageOrderingEnabled) Should message ordering be enabled.pubsubEndpoint(String pubsubEndpoint) Pub/Sub endpoint to use.retry(com.google.api.gax.retrying.RetrySettings retry) A custom RetrySettings to control how the publisher handles retry-able failures.A custom RetrySettings to control how the publisher handles retry-able failures.serializer(String serializer) A custom GooglePubsubSerializer to use for serializing message payloads in the producer.serializer(org.apache.camel.component.google.pubsub.serializer.GooglePubsubSerializer serializer) A custom GooglePubsubSerializer to use for serializing message payloads in the producer.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
basic
-
lazyStartProducer
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder 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:booleantype. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder 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 abooleantype. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
messageOrderingEnabled
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder messageOrderingEnabled(boolean messageOrderingEnabled) Should message ordering be enabled. The option is a:booleantype. Default: false Group: producer (advanced)- Parameters:
messageOrderingEnabled- the value to set- Returns:
- the dsl builder
-
messageOrderingEnabled
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder messageOrderingEnabled(String messageOrderingEnabled) Should message ordering be enabled. The option will be converted to abooleantype. Default: false Group: producer (advanced)- Parameters:
messageOrderingEnabled- the value to set- Returns:
- the dsl builder
-
pubsubEndpoint
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder pubsubEndpoint(String pubsubEndpoint) Pub/Sub endpoint to use. Required when using message ordering, and ensures that messages are received in order even when multiple publishers are used. The option is a:java.lang.Stringtype. Group: producer (advanced)- Parameters:
pubsubEndpoint- the value to set- Returns:
- the dsl builder
-
retry
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder retry(com.google.api.gax.retrying.RetrySettings retry) A custom RetrySettings to control how the publisher handles retry-able failures. The option is a:com.google.api.gax.retrying.RetrySettingstype. Group: producer (advanced)- Parameters:
retry- the value to set- Returns:
- the dsl builder
-
retry
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder retry(String retry) A custom RetrySettings to control how the publisher handles retry-able failures. The option will be converted to acom.google.api.gax.retrying.RetrySettingstype. Group: producer (advanced)- Parameters:
retry- the value to set- Returns:
- the dsl builder
-
serializer
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder serializer(org.apache.camel.component.google.pubsub.serializer.GooglePubsubSerializer serializer) A custom GooglePubsubSerializer to use for serializing message payloads in the producer. The option is a:org.apache.camel.component.google.pubsub.serializer.GooglePubsubSerializertype. Group: producer (advanced)- Parameters:
serializer- the value to set- Returns:
- the dsl builder
-
serializer
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder serializer(String serializer) A custom GooglePubsubSerializer to use for serializing message payloads in the producer. The option will be converted to aorg.apache.camel.component.google.pubsub.serializer.GooglePubsubSerializertype. Group: producer (advanced)- Parameters:
serializer- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom HeaderFilterStrategy to filter headers to and from Camel message. The option is a:org.apache.camel.spi.HeaderFilterStrategytype. Group: advanced- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder headerFilterStrategy(String headerFilterStrategy) To use a custom HeaderFilterStrategy to filter headers to and from Camel message. The option will be converted to aorg.apache.camel.spi.HeaderFilterStrategytype. Group: advanced- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
includeAllGoogleProperties
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder includeAllGoogleProperties(boolean includeAllGoogleProperties) Whether to include all Google headers when mapping from Pubsub to Camel Message. Setting this to true will include properties such as x-goog etc. The option is a:booleantype. Default: false Group: advanced- Parameters:
includeAllGoogleProperties- the value to set- Returns:
- the dsl builder
-
includeAllGoogleProperties
default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder includeAllGoogleProperties(String includeAllGoogleProperties) Whether to include all Google headers when mapping from Pubsub to Camel Message. Setting this to true will include properties such as x-goog etc. The option will be converted to abooleantype. Default: false Group: advanced- Parameters:
includeAllGoogleProperties- the value to set- Returns:
- the dsl builder
-
loggerId
@Deprecated default GooglePubsubEndpointBuilderFactory.AdvancedGooglePubsubEndpointProducerBuilder loggerId(String loggerId) Deprecated.To use a custom logger name. The option is a:java.lang.Stringtype. Group: advanced- Parameters:
loggerId- the value to set- Returns:
- the dsl builder
-