// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-hazelcast"]
= Hazelcast Atomic Number
:linkattrs:
:cq-artifact-id: camel-quarkus-hazelcast
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable
:cq-description: Increment, decrement, set, etc. Hazelcast atomic number (a grid wide number).
:cq-deprecated: false
:cq-jvm-since: 1.1.0
:cq-native-since: 1.6.0

ifeval::[{doc-show-badges} == true]
[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native since##[.badge-supported]##1.6.0##
endif::[]

Increment, decrement, set, etc. Hazelcast atomic number (a grid wide number).

[id="extensions-hazelcast-whats-inside"]
== What's inside

* xref:{cq-camel-components}::hazelcast-atomicvalue-component.adoc[Hazelcast Atomic Number component], URI syntax: `hazelcast-atomicvalue:cacheName`
* xref:{cq-camel-components}::hazelcast-instance-component.adoc[Hazelcast Instance component], URI syntax: `hazelcast-instance:cacheName`
* xref:{cq-camel-components}::hazelcast-list-component.adoc[Hazelcast List component], URI syntax: `hazelcast-list:cacheName`
* xref:{cq-camel-components}::hazelcast-map-component.adoc[Hazelcast Map component], URI syntax: `hazelcast-map:cacheName`
* xref:{cq-camel-components}::hazelcast-multimap-component.adoc[Hazelcast Multimap component], URI syntax: `hazelcast-multimap:cacheName`
* xref:{cq-camel-components}::hazelcast-queue-component.adoc[Hazelcast Queue component], URI syntax: `hazelcast-queue:cacheName`
* xref:{cq-camel-components}::hazelcast-replicatedmap-component.adoc[Hazelcast Replicated Map component], URI syntax: `hazelcast-replicatedmap:cacheName`
* xref:{cq-camel-components}::hazelcast-ringbuffer-component.adoc[Hazelcast Ringbuffer component], URI syntax: `hazelcast-ringbuffer:cacheName`
* xref:{cq-camel-components}::hazelcast-seda-component.adoc[Hazelcast SEDA component], URI syntax: `hazelcast-seda:cacheName`
* xref:{cq-camel-components}::hazelcast-set-component.adoc[Hazelcast Set component], URI syntax: `hazelcast-set:cacheName`
* xref:{cq-camel-components}::hazelcast-topic-component.adoc[Hazelcast Topic component], URI syntax: `hazelcast-topic:cacheName`

Please refer to the above links for usage and configuration details.

[id="extensions-hazelcast-maven-coordinates"]
== Maven coordinates

https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-hazelcast[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]

Or add the coordinates to your existing project:

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-hazelcast</artifactId>
</dependency>
----
ifeval::[{doc-show-user-guide-link} == true]
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
endif::[]

[id="extensions-hazelcast-ssl-in-native-mode"]
== 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
https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide].

[id="extensions-hazelcast-additional-camel-quarkus-configuration"]
== Additional Camel Quarkus configuration

This extension leverages https://github.com/hazelcast/quarkus-hazelcast-client[Hazelcast Client for Quarkus]. The configuration of the HazelcastInstance is managed by the extension. To configure Hazelcast Instance, check the https://github.com/hazelcast/quarkus-hazelcast-client[Hazelcast Client for Quarkus] guide.

IMPORTANT: `camel-quarkus-hazelcast` works only in client mode.

To use the `HazelcastInstance` bean in the Hazelcast component, you should configure the component as follows.

[source,java]
----
    <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 https://github.com/apache/camel-quarkus/tree/main/integration-tests/hazelcast[integration tests].

