Spring Data for VMware GemFire
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:
-
AnnotationImportPdxConfiguration
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionConfigures the disk store that is used for PDX meta data.booleanConfigures whether pdx ignores fields that were unread during deserialization.Class<?>[]When using the Spring Data Geode's (SDG)MappingPdxSerializermost application domaintypesare included for Apache Geode PDX serialization, by default.booleanConfigures whether the type metadata for PDX objects is persisted to disk.booleanConfigures the object preference toPdxInstancetype 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)MappingPdxSerializermost application domaintypesare included for Apache Geode PDX serialization, by default. However, certaintypesare 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
typesto be handled by theMappingPdxSerializer, possibly overriding the excludedtypesby 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 toPdxInstancetype 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:
- ""
-