Hazelcast Atomic Number
JVM since1.1.0 Native since1.6.0
Increment, decrement, set, etc. Hazelcast atomic number (a grid wide number).
What’s inside
-
Hazelcast Atomic Number component, URI syntax:
hazelcast-atomicvalue:cacheName
-
Hazelcast Instance component, URI syntax:
hazelcast-instance:cacheName
-
Hazelcast List component, URI syntax:
hazelcast-list:cacheName
-
Hazelcast Map component, URI syntax:
hazelcast-map:cacheName
-
Hazelcast Multimap component, URI syntax:
hazelcast-multimap:cacheName
-
Hazelcast Queue component, URI syntax:
hazelcast-queue:cacheName
-
Hazelcast Replicated Map component, URI syntax:
hazelcast-replicatedmap:cacheName
-
Hazelcast Ringbuffer component, URI syntax:
hazelcast-ringbuffer:cacheName
-
Hazelcast SEDA component, URI syntax:
hazelcast-seda:cacheName
-
Hazelcast Set component, URI syntax:
hazelcast-set:cacheName
-
Hazelcast Topic component, URI syntax:
hazelcast-topic:cacheName
Please refer to the above links 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-hazelcast</artifactId>
</dependency>
Check the User guide for more information about writing Camel Quarkus applications.
SSL in native mode
This extension auto-enables SSL support in native mode. Hence you do not need to add quarkus.ssl.native=true
to your application.properties
yourself. See also Quarkus SSL guide.
Additional Camel Quarkus configuration
This extension leverages Hazelcast Client for Quarkus. The configuration of the HazelcastInstance is managed by the extension. To configure Hazelcast Instance, check the Hazelcast Client for Quarkus guide.
Please note that the camel-quarkus-hazelcast component works only with the client mode.
To use the Hazelcast instance in the camel-quarkus-hazelcast component, you should configure the component with :
-
The HazelcastInstance initialized by the Hazelcast Client for Quarkus
-
The component mode as : "client"
Example of configuration for HazelcastMap component:
@Inject
HazelcastInstance hazelcastInstance;
@Produces
@ApplicationScoped
@Unremovable
@Named("hazelcast-map")
HazelcastDefaultComponent hazelcastMap() {
final HazelcastMapComponent hazelcastComponent = new HazelcastMapComponent();
hazelcastComponent.setHazelcastInstance(hazelcastInstance);
hazelcastComponent.setHazelcastMode(HazelcastConstants.HAZELCAST_CLIENT_MODE);
return getHazelcastComponent(hazelcastComponent);
}
You may want to check the integration test in our source tree as an example.