camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1012313 - in /websites/production/camel/content: cache/main.pageCache ehcache.html
Date Tue, 16 May 2017 12:19:13 GMT
Author: buildbot
Date: Tue May 16 12:19:13 2017
New Revision: 1012313

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/ehcache.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/ehcache.html
==============================================================================
--- websites/production/camel/content/ehcache.html (original)
+++ websites/production/camel/content/ehcache.html Tue May 16 12:19:13 2017
@@ -96,7 +96,7 @@
 </div></div><h3 id="Ehcache-URIformat">URI format</h3><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[ehcache://cacheName[?options]
 ]]></script>
-</div></div><p>You can append query options to the URI in the following
format,&#160;<code>?option=value&amp;option=#beanRef&amp;...</code></p><div><h3
id="Ehcache-Options">Options</h3><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Default Value</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>configUri</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>URI pointing to the Ehcache XML configuration
file's location</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>createCacheIfNotExist</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Configure if a cache need to be cre
 ated if it does exist or can't be pre-configured.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>action</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>To configure the default cache action.
If an action is set in the message header, then the operation from the header takes precedence.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>key</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>To configure the default action key.
If a key is set in the message header, then the key from the header takes precedence.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>configuration</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The default cache
  configuration to be used to create caches if configUri is not set</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>keyType</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>java.lang.Object</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The cache key type, default Object.class</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>valueType</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="font-family: monospace;">java.lang.Object</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The cache value type, default Object.class</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>eventOrdering</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>ORDERED</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Set the the delivery mode (ordered,
unordered), consumer only</p></td></tr><tr><td colspan="1" rowspan="1"
class="conflue
 nceTd"><p>eventFiring</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>ASYNCHRONOUS</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Set the the delivery mode (synchronous,
asynchronous<span>), consumer only</span></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>eventTypes</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>EVICTED,EXPIRED,REMOVED,CREATED,UPDATED</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Set the type of events to listen
for<span>, consumer only</span></p></td></tr></tbody></table></div><h4
id="Ehcache-MessageHeadersCamel">Message Headers Camel&#160;</h4><p>&#160;</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p>Header</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><span s
 tyle="color: rgb(0,0,0);">CamelEhcacheAction</span></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);"><code>String</code></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">The
operation to be perfomed on the cache, valid options are:</span></p><ul style="list-style-type:
square;"><li><span style="color: rgb(0,0,0);">CLEAR</span></li><li><span
style="color: rgb(0,0,0);">PUT</span></li><li><span style="color:
rgb(0,0,0);">PUT_ALL</span></li><li><span style="color: rgb(0,0,0);">PUT_IF_ABSENT</span></li><li><span
style="color: rgb(0,0,0);">GET</span></li><li><span style="color:
rgb(0,0,0);">GET_ALL</span></li><li><span style="color: rgb(0,0,0);">REMOVE</span></li><li><span
style="color: rgb(0,0,0);">REMOVE_ALL</span></li><li><span style="color:
rgb(0,0,0);">REPLACE</span></li></ul></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">CamelEhcacheActio
 nHasResult</span></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><span
style="color: rgb(0,0,0);">Boolean</span></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">Set to
true if the action has a result</span></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">CamelEhcacheActionSucceeded</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);"><code>Boolean</code></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">Set
to true if the actionsuccedded</span></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">CamelEhcacheKey</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">Object</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">The
cache key used for an actio
 n</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><span
style="color: rgb(0,0,0);">CamelEhcacheKeys</span></td><td colspan="1" rowspan="1"
class="confluenceTd"><span style="color: rgb(0,0,0);">Set&lt;Object&gt;</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">A list
of keys, used in </span><ul><li><span style="color: rgb(0,0,0);">PUT_ALL</span></li><li><span
style="color: rgb(0,0,0);">GET_ALL</span></li><li><span style="color:
rgb(0,0,0);">REMOVE_ALL</span></li></ul></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">CamelEhcacheValue</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">Object</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">The
value to put in the cache or the result of an operation</span></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0
 ,0,0);">CamelEhcacheOldValue</span></td><td colspan="1" rowspan="1" class="confluenceTd"><span
style="color: rgb(0,0,0);">Object</span></td><td colspan="1" rowspan="1"
class="confluenceTd"><span style="color: rgb(0,0,0);">The old value associated to
a key for actions like PUT_IF_ABSENT or the Object used for comparison for actions like REPLACE</span></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">CamelEhcacheEventType</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">EventType</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">The
type of event received</span></td></tr></tbody></table></div><h3
id="Ehcache-Ehcachebasedidempotentrepositoryexample:">Ehcache based idempotent repository
example:</h3><p>&#160;</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+</div></div><p>You can append query options to the URI in the following
format,&#160;<code>?option=value&amp;option=#beanRef&amp;...</code></p><div><h3
id="Ehcache-ComponentOptions">Component Options</h3><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Name</th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Default Value</p></th><th
colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th><th colspan="1" rowspan="1"
class="confluenceTh">&#160;</th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">configuration</td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd">EhcacheConfiguration</td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The global component configuration</p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td></tr><tr><td
colspan="
 1" rowspan="1" class="confluenceTd">cacheConfiguration</td><td colspan="1" rowspan="1"
class="confluenceTd">null</td><td colspan="1" rowspan="1" class="confluenceTd">CacheConfiguration</td><td
colspan="1" rowspan="1" class="confluenceTd">The default cache configuration to be used
to create caches if configUri is not set</td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">cacheConfigurationUri</td><td colspan="1"
rowspan="1" class="confluenceTd"><code>null</code></td><td colspan="1"
rowspan="1" class="confluenceTd">String</td><td colspan="1" rowspan="1" class="confluenceTd">URI
pointing to the Ehcache XML configuration file's location</td><td colspan="1" rowspan="1"
class="confluenceTd">&#160;</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">cacheManager</td><td colspan="1" rowspan="1" class="confluenceTd">null</td><td
colspan="1" rowspan="1" class="confluenceTd">CacheManager</td><td colspan="1"
rowspa
 n="1" class="confluenceTd">The cache manager, if set configuration and configurationUri
are discarded</td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td></tr></tbody></table></div><h3
id="Ehcache-EndpointOptions">Endpoint Options</h3><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Default Value</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>configUri</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>URI pointing to the Ehcache XML configuration
file's location (deprecated in camel 2.20.x)</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">configurationUri</td><td colspan="1"
rowspan="1" class="confluenceTd"><code>null</code></td><td colspan="1"
  rowspan="1" class="confluenceTd">URI pointing to the Ehcache XML configuration file's
location</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">configuration</td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The default cache configuration to
be used to create caches if configUri is not set</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">cacheManager</td><td colspan="1"
rowspan="1" class="confluenceTd">null</td><td colspan="1" rowspan="1" class="confluenceTd">The
cache manager, if set configuration and configurationUri are discarded</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>createCacheIfNotExist</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Configure if a cache need to be created
if it does exist or can't be pre-configured.</p></td></tr><tr><td
colspan="1"
  rowspan="1" class="confluenceTd"><p><code>action</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>To configure the default cache action.
If an action is set in the message header, then the operation from the header takes precedence.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>key</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>To configure the default action key.
If a key is set in the message header, then the key from the header takes precedence.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>keyType</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>java.lang.Object</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The cache key type, default Object.class</p></td></tr><tr><td
colspan="1" rowspa
 n="1" class="confluenceTd"><p><code>valueType</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="font-family: monospace;">java.lang.Object</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The cache value type, default Object.class</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>eventOrdering</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>ORDERED</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Set the the delivery mode (ordered,
unordered), consumer only</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>eventFiring</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>ASYNCHRONOUS</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Set the the delivery mode (synchronous, asynchronous<span>),
consumer only</span></p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>eventTypes</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>EVICTED,EX
 PIRED,REMOVED,CREATED,UPDATED</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Set
the type of events to listen for<span>, consumer only</span></p></td></tr></tbody></table></div><h4
id="Ehcache-MessageHeadersCamel">Message Headers Camel&#160;</h4><p>&#160;</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p>Header</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">CamelEhcacheAction</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);"><code>String</code></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">The
operation to be perfomed on the cache, valid options are:</span></p><ul style="list-style-type:
square;"><li><span sty
 le="color: rgb(0,0,0);">CLEAR</span></li><li><span style="color:
rgb(0,0,0);">PUT</span></li><li><span style="color: rgb(0,0,0);">PUT_ALL</span></li><li><span
style="color: rgb(0,0,0);">PUT_IF_ABSENT</span></li><li><span style="color:
rgb(0,0,0);">GET</span></li><li><span style="color: rgb(0,0,0);">GET_ALL</span></li><li><span
style="color: rgb(0,0,0);">REMOVE</span></li><li><span style="color:
rgb(0,0,0);">REMOVE_ALL</span></li><li><span style="color: rgb(0,0,0);">REPLACE</span></li></ul></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">CamelEhcacheActionHasResult</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">Boolean</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">Set
to true if the action has a result</span></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">CamelEhcacheActionSu
 cceeded</span></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><span
style="color: rgb(0,0,0);"><code>Boolean</code></span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">Set
to true if the actionsuccedded</span></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">CamelEhcacheKey</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">Object</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">The
cache key used for an action</span></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">CamelEhcacheKeys</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">Set&lt;Object&gt;</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">A list
of keys, used in </span><ul><li><span style="color: rgb
 (0,0,0);">PUT_ALL</span></li><li><span style="color: rgb(0,0,0);">GET_ALL</span></li><li><span
style="color: rgb(0,0,0);">REMOVE_ALL</span></li></ul></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">CamelEhcacheValue</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">Object</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">The
value to put in the cache or the result of an operation</span></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">CamelEhcacheOldValue</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">Object</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">The
old value associated to a key for actions like PUT_IF_ABSENT or the Object used for comparison
for actions like REPLACE</span></td></tr><tr><td colspan="1" rowsp
 an="1" class="confluenceTd"><span style="color: rgb(0,0,0);">CamelEhcacheEventType</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">EventType</span></td><td
colspan="1" rowspan="1" class="confluenceTd"><span style="color: rgb(0,0,0);">The
type of event received</span></td></tr></tbody></table></div><h3
id="Ehcache-Ehcachebasedidempotentrepositoryexample:">Ehcache based idempotent repository
example:</h3><p>&#160;</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[CacheManager
manager = CacheManagerBuilder.newCacheManager(new XmlConfiguration(&quot;ehcache.xml&quot;));
 EhcacheIdempotentRepository repo = new EhcacheIdempotentRepository(manager, &quot;idempotent-cache&quot;);
  



Mime
View raw message