이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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.