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.
camel-quarkus-hazelcast works only in client mode. |
To use the HazelcastInstance
bean in the Hazelcast component, you should configure the component as follows.
(1)
@Inject
HazelcastInstance hazelcastInstance;
@Produces
@ApplicationScoped
@Unremovable
@Named("hazelcast-map")
HazelcastDefaultComponent hazelcastMap() {
final HazelcastMapComponent hazelcastComponent = new HazelcastMapComponent();
hazelcastComponent.setHazelcastInstance(hazelcastInstance);
(2)
hazelcastComponent.setHazelcastMode(HazelcastConstants.HAZELCAST_CLIENT_MODE);
return getHazelcastComponent(hazelcastComponent);
}
1 | The HazelcastInstance bean instance created by the quarkus-hazelcast extension |
2 | The Hazelcast mode must be set to client mode |
Some more examples can be found in the Camel Quarkus Hazelcast integration tests.