Skip to content

Commit

Permalink
Update serialization-configuration.adoc (#285)
Browse files Browse the repository at this point in the history
Updated as requested

---------

Co-authored-by: Rob Swain <[email protected]>
  • Loading branch information
amandalindsay and Rob-Hazelcast authored Jan 8, 2025
1 parent 628ed5a commit 0018689
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/modules/ROOT/pages/serialization-configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,28 @@

{description}

With the Hazelcast Platform Operator you can configure Hazelcast Serialization using the Hazelcast CR. To understand the Hazelcast Serialization, refer to xref:hazelcast:serialization:serialization.adoc[Platform documentation].
With the Hazelcast Platform Operator you can configure Hazelcast Serialization using the Hazelcast Custom Resource (CR). To understand the Hazelcast Serialization, refer to xref:hazelcast:serialization:serialization.adoc[Platform documentation].

You can find more detailed information on configuration of Serialization in xref:api-ref.adoc#serializationconfig[API Reference] page.

== Configuring Custom Serialization
== Configuring Compact Serialization

To register custom serializers, you need to define the list of serializers and types in the `serializers` section. The following configuration will register two custom serializers.
To configure Compact serialization, you need to define the `compactSerialization` section. The following configuration will register an explicit serializer `com.example.FooSerializer` along with a zero-config serializer for the `com.example.Bar` class.

.Custom serializers example configuration
.Compact serialization example configuration
[source,yaml,subs="attributes+"]
----
include::ROOT:example$/serialization-custom.yaml[]
include::ROOT:example$/serialization-compact.yaml[]
----

== Configuring Custom Serialization

== Configuring Compact Serialization

To configure Compact serialization, you need to define the `compactSerialization` section. The following configuration will register an explicit serializer `com.example.FooSerializer` along with a zero-config serializer for `com.example.Bar` class.
To register custom serializers, you need to define the list of serializers and types in the `serializers` section. The following configuration will register two custom serializers.

.Compact serialization example configuration
.Custom serializers example configuration
[source,yaml,subs="attributes+"]
----
include::ROOT:example$/serialization-compact.yaml[]
include::ROOT:example$/serialization-custom.yaml[]
----

== Disallowing Deserialization of Untrusted Java Classes
Expand Down

0 comments on commit 0018689

Please sign in to comment.