Repository: camel Updated Branches: refs/heads/master 0ee24c1a9 -> 0bb63d5ba
ehcache component doc update Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0bb63d5b Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0bb63d5b Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0bb63d5b Branch: refs/heads/master Commit: 0bb63d5ba5f2333aa833f30275d6a2a98041157f Parents: 0ee24c1 Author: Preben Asmussen <[email protected]> Authored: Mon Nov 21 20:09:46 2016 +0100 Committer: Preben Asmussen <[email protected]> Committed: Mon Nov 21 20:09:46 2016 +0100 ---------------------------------------------------------------------- .../camel-ehcache/src/main/docs/ehcache-component.adoc | 13 ++++++++++++- .../camel/component/ehcache/EhcacheEndpoint.java | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/0bb63d5b/components/camel-ehcache/src/main/docs/ehcache-component.adoc ---------------------------------------------------------------------- diff --git a/components/camel-ehcache/src/main/docs/ehcache-component.adoc b/components/camel-ehcache/src/main/docs/ehcache-component.adoc index 597fe9d..07c24d6 100644 --- a/components/camel-ehcache/src/main/docs/ehcache-component.adoc +++ b/components/camel-ehcache/src/main/docs/ehcache-component.adoc @@ -49,17 +49,28 @@ The Ehcache component has no options. // endpoint options: START -The Ehcache component supports 5 endpoint options which are listed below: +The Ehcache component supports 16 endpoint options which are listed below: {% raw %} [width="100%",cols="2,1,1m,1m,5",options="header"] |======================================================================= | Name | Group | Default | Java Type | Description | cacheName | common | | String | *Required* the cache name +| cacheManager | common | | CacheManager | The cache manager +| configUri | common | | String | URI pointing to the Ehcache XML configuration file's location +| createCacheIfNotExist | common | true | boolean | Configure if a cache need to be created if it does exist or can't be pre-configured. | bridgeErrorHandler | consumer | false | boolean | Allows for bridging the consumer to the Camel routing Error Handler which mean any exceptions occurred while the consumer is trying to pickup incoming messages or the likes will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions that will be logged at WARN/ERROR level and ignored. +| eventFiring | consumer | ASYNCHRONOUS | EventFiring | Set the the delivery mode (synchronous asynchronous) +| eventOrdering | consumer | ORDERED | EventOrdering | Set the the delivery mode (ordered unordered) +| eventTypes | consumer | EVICTED,EXPIRED,REMOVED,CREATED,UPDATED | Set | Set the type of events to listen for | exceptionHandler | consumer (advanced) | | ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions that will be logged at WARN/ERROR level and ignored. | exchangePattern | consumer (advanced) | | ExchangePattern | Sets the exchange pattern when the consumer creates an exchange. +| action | producer | | String | To configure the default cache action. If an action is set in the message header then the operation from the header takes precedence. +| key | producer | | Object | To configure the default action key. If a key is set in the message header then the key from the header takes precedence. +| configuration | advanced | | CacheConfiguration<?,?> | The default cache configuration to be used to create caches. +| keyType | advanced | java.lang.Object | String | The cache key type default Object.class | synchronous | advanced | false | boolean | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). +| valueType | advanced | java.lang.Object | String | The cache value type default Object.class |======================================================================= {% endraw %} // endpoint options: END http://git-wip-us.apache.org/repos/asf/camel/blob/0bb63d5b/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/EhcacheEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/EhcacheEndpoint.java b/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/EhcacheEndpoint.java index 5f7ea5e..d48df7d 100644 --- a/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/EhcacheEndpoint.java +++ b/components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/EhcacheEndpoint.java @@ -22,6 +22,7 @@ import org.apache.camel.Producer; import org.apache.camel.impl.DefaultEndpoint; import org.apache.camel.spi.Metadata; import org.apache.camel.spi.UriEndpoint; +import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriPath; /** @@ -32,7 +33,7 @@ public class EhcacheEndpoint extends DefaultEndpoint { @UriPath(description = "the cache name") @Metadata(required = "true") private final String cacheName; - + @UriParam private final EhcacheConfiguration configuration; private final EhcacheManager cacheManager;
