Infinispan
JVM since0.0.1 Native since0.0.1
Read and write from/to Infinispan distributed key/value store and data grid.
What’s inside
-
Infinispan component, URI syntax:
infinispan:cacheName
Please refer to the above link for usage and configuration details.
Maven coordinates
Or add the coordinates to your existing project:
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-infinispan</artifactId>
</dependency>
Check the User guide for more information about writing Camel Quarkus applications.
Additional Camel Quarkus configuration
Infinispan Client Configuration
You can either configure the Infinispan client via the relevant Camel Infinispan component & endpoint options, or you may use the Quarkus Infinispan extension configuration properties.
Note that if you choose to use Quarkus Infinispan configuration properties, you must add an injection point for the RemoteCacheManager
in order for it to be discoverable by the Camel Infinispan component. For example:
public class Routes extends RouteBuilder {
// Injects the default unnamed RemoteCacheManager
@Inject
RemoteCacheManager cacheManager;
// If configured, injects an optional named RemoteCacheManager
@Inject
@InfinispanClientName("myNamedClient")
RemoteCacheManager namedCacheManager;
@Override
public void configure() {
// Route configuration here...
}
}
Camel Infinispan InfinispanRemoteAggregationRepository
in native mode
If you chose to use the InfinispanRemoteAggregationRepository
in native mode, then you must enable native serialization support.