Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
5.4. Custom Listeners for Embedded Cache
Custom Listeners for an embedded cache can be registered through the
customListener parameter as shown below:
Using Java
from("infinispan://?cacheContainer=#myCustomContainer&cacheName=customCacheName&customListener=#myCustomListener")
.to("mock:result");
from("infinispan://?cacheContainer=#myCustomContainer&cacheName=customCacheName&customListener=#myCustomListener")
.to("mock:result");
Using Blueprint
The instance of
myCustomListener must exist. Users are encouraged to extend the org.apache.camel.component.infinispan.embedded.InfinispanEmbeddedCustomListener and annotate the resulting class with the @Listener annotation from org.infinispan.notifications.
Note
Custom filters and converters for embedded caches are currently not supported.