Annotation Interface EnablePdx
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@Import(PdxConfiguration.class)
public @interface EnablePdx
The
EnablePdx
annotation marks a Spring @Configuration
annotated Class
to enable the Apache Geode PDX features and functionality in this peer cache, cluster member or cache client
application.- Since:
- 1.9.0
- See Also:
-
Annotation
Import
PdxConfiguration
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionConfigures the disk store that is used for PDX meta data.boolean
Configures whether pdx ignores fields that were unread during deserialization.Class<?>[]
When using the Spring Data Geode's (SDG)MappingPdxSerializer
most application domaintypes
are included for Apache Geode PDX serialization, by default.boolean
Configures whether the type metadata for PDX objects is persisted to disk.boolean
Configures the object preference toPdxInstance
type orObject
.Configures the PDX serializer to be used by the cache to serialize object data.
-
Element Details
-
diskStoreName
String diskStoreNameConfigures the disk store that is used for PDX meta data. Use the spring.data.gemfire.pdx.disk-store-name property in application.properties.- Default:
- ""
-
ignoreUnreadFields
boolean ignoreUnreadFieldsConfigures whether pdx ignores fields that were unread during deserialization. Default is false. Use the spring.data.gemfire.pdx.ignore-unread-fields property in application.properties.- Default:
- false
-
includeDomainTypes
Class<?>[] includeDomainTypesWhen using the Spring Data Geode's (SDG)MappingPdxSerializer
most application domaintypes
are included for Apache Geode PDX serialization, by default. However, certaintypes
are excluded by SDG'sMappingPdxSerializer
, such as java.*, javax.*, com.gemstone.*, org.apache.geode.* and org.springframework.*types
. This allows the default behavior to be overridden when and where necessary.- Returns:
- an array of
types
to be handled by theMappingPdxSerializer
, possibly overriding the excludedtypes
by default.
- Default:
- {}
-
persistent
boolean persistentConfigures whether the type metadata for PDX objects is persisted to disk. Default is false. Use the spring.data.gemfire.pdx.persistent property in application.properties.- Default:
- false
-
readSerialized
boolean readSerializedConfigures the object preference toPdxInstance
type orObject
. Default is false. Use the spring.data.gemfire.pdx.read-serialized property in application.properties.- Default:
- false
-
serializerBeanName
String serializerBeanNameConfigures the PDX serializer to be used by the cache to serialize object data. Use the spring.data.gemfire.pdx.serializer-bean-name property in application.properties.- Default:
- ""
-