Interface JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
JCacheEndpointBuilderFactory.AdvancedJCacheEndpointBuilder
- Enclosing interface:
- JCacheEndpointBuilderFactory
public static interface JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilderAdvanced builder for endpoint producers for the JCache component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default JCacheEndpointBuilderFactory.JCacheEndpointProducerBuilderbasic()default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuildercacheLoaderFactory(String cacheLoaderFactory)The CacheLoader factory.default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuildercacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> cacheLoaderFactory)The CacheLoader factory.default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuildercacheWriterFactory(String cacheWriterFactory)The CacheWriter factory.default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuildercacheWriterFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> cacheWriterFactory)The CacheWriter factory.default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuildercreateCacheIfNotExists(boolean createCacheIfNotExists)Configure if a cache need to be created if it does exist or can't be pre-configured.default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuildercreateCacheIfNotExists(String createCacheIfNotExists)Configure if a cache need to be created if it does exist or can't be pre-configured.default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilderexpiryPolicyFactory(String expiryPolicyFactory)The ExpiryPolicy factory.default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilderexpiryPolicyFactory(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory)The ExpiryPolicy factory.default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilderlazyStartProducer(boolean lazyStartProducer)Whether the producer should be started lazy (on the first message).default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilderlazyStartProducer(String lazyStartProducer)Whether the producer should be started lazy (on the first message).default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilderlookupProviders(boolean lookupProviders)Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi.default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilderlookupProviders(String lookupProviders)Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi.
-
-
-
Method Detail
-
basic
default JCacheEndpointBuilderFactory.JCacheEndpointProducerBuilder basic()
-
lazyStartProducer
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder 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 JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder 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
-
cacheLoaderFactory
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder cacheLoaderFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheLoader> cacheLoaderFactory)
The CacheLoader factory. The option is a: <code>javax.cache.configuration.Factory<javax.cache.integration.CacheLoader></code> type. Group: advanced- Parameters:
cacheLoaderFactory- the value to set- Returns:
- the dsl builder
-
cacheLoaderFactory
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder cacheLoaderFactory(String cacheLoaderFactory)
The CacheLoader factory. The option will be converted to a <code>javax.cache.configuration.Factory<javax.cache.integration.CacheLoader></code> type. Group: advanced- Parameters:
cacheLoaderFactory- the value to set- Returns:
- the dsl builder
-
cacheWriterFactory
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder cacheWriterFactory(javax.cache.configuration.Factory<javax.cache.integration.CacheWriter> cacheWriterFactory)
The CacheWriter factory. The option is a: <code>javax.cache.configuration.Factory<javax.cache.integration.CacheWriter></code> type. Group: advanced- Parameters:
cacheWriterFactory- the value to set- Returns:
- the dsl builder
-
cacheWriterFactory
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder cacheWriterFactory(String cacheWriterFactory)
The CacheWriter factory. The option will be converted to a <code>javax.cache.configuration.Factory<javax.cache.integration.CacheWriter></code> type. Group: advanced- Parameters:
cacheWriterFactory- the value to set- Returns:
- the dsl builder
-
createCacheIfNotExists
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder createCacheIfNotExists(boolean createCacheIfNotExists)
Configure if a cache need to be created if it does exist or can't be pre-configured. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
createCacheIfNotExists- the value to set- Returns:
- the dsl builder
-
createCacheIfNotExists
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder createCacheIfNotExists(String createCacheIfNotExists)
Configure if a cache need to be created if it does exist or can't be pre-configured. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Parameters:
createCacheIfNotExists- the value to set- Returns:
- the dsl builder
-
expiryPolicyFactory
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder expiryPolicyFactory(javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy> expiryPolicyFactory)
The ExpiryPolicy factory. The option is a: <code>javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy></code> type. Group: advanced- Parameters:
expiryPolicyFactory- the value to set- Returns:
- the dsl builder
-
expiryPolicyFactory
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder expiryPolicyFactory(String expiryPolicyFactory)
The ExpiryPolicy factory. The option will be converted to a <code>javax.cache.configuration.Factory<javax.cache.expiry.ExpiryPolicy></code> type. Group: advanced- Parameters:
expiryPolicyFactory- the value to set- Returns:
- the dsl builder
-
lookupProviders
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder lookupProviders(boolean lookupProviders)
Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
lookupProviders- the value to set- Returns:
- the dsl builder
-
lookupProviders
default JCacheEndpointBuilderFactory.AdvancedJCacheEndpointProducerBuilder lookupProviders(String lookupProviders)
Configure if a camel-cache should try to find implementations of jcache api in runtimes like OSGi. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
lookupProviders- the value to set- Returns:
- the dsl builder
-
-