Fory
Since Camel 4.9
Fory is a Data Format that uses the Fory Library
| Apache Fory is not supporting architecture using Big Endian (s390x, for instance). |
With JDK 25+, the JVM parameter --add-opens java.base/java.lang.invoke=ALL-UNNAMED must be provided to be able to use this dataformat. |
Fory Options
The Fory dataformat supports 4 options, which are listed below.
| Name | Default | Java Type | Description |
|---|---|---|---|
| Class of the java type to use when unmarshalling. | ||
|
| Whether to require register classes. | |
|
| Whether to use the threadsafe Fory. | |
|
| Whether to auto-discover Fory from the registry. |
Dependencies
To use Fory in your camel routes, you need to add the dependency on camel-fory which implements this data format.
If you use maven, you could add the following to your pom.xml, substituting the version number for the latest and greatest release.
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-fory</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>