Pdx (Apache Geode 1.13.0)
Date: 2020-09-07

org.apache.geode.management.configuration

## Class Pdx

- java.lang.Object
- - org.apache.geode.management.configuration.AbstractConfiguration<PdxInfo>
  - - org.apache.geode.management.configuration.Pdx

- All Implemented Interfaces:
    Serializable, Identifiable<String>, JsonSerializable

      @Experimental
      public class Pdx
      extends AbstractConfiguration<PdxInfo>

  Used to configure PDX serialization for a cache.
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `PDX_ENDPOINT`
    `static String` | `PDX_ID`

    - ### Fields inherited from class org.apache.geode.management.configuration.AbstractConfiguration

      `CLUSTER`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Pdx()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `AutoSerializer` | `getAutoSerializer()`
    `String` | `getDiskStoreName()`
    `String` | `getId()` Returns `PDX_ID`
    `Links` | `getLinks()` for internal usage only
    `ClassName` | `getPdxSerializer()`
    `Boolean` | `isIgnoreUnreadFields()`
    `Boolean` | `isReadSerialized()`
    `void` | `setAutoSerializer(AutoSerializer autoSerializer)`
    `void` | `setDiskStoreName(String diskStoreName)` Setting a non-null diskStoreName causes the Pdx information to be persisted to the named disk store.
    `void` | `setIgnoreUnreadFields(Boolean ignoreUnreadFields)` Setting ignoreUnreadFields to true can save memory during pdx deserialization but if the deserialized object is reserialized then the unread field data will be lost.
    `void` | `setPdxSerializer(ClassName pdxSerializer)`
    `void` | `setReadSerialized(Boolean readSerialized)` Setting readSerialized to true causes any pdx deserialization to produce instances of org.apache.geode.pdx.PdxInstance interface in the geode-core module instead of a domain class instance.

    - ### Methods inherited from class org.apache.geode.management.configuration.AbstractConfiguration

      `getCreationCommandType, getGroup, getGroupName, isCluster, isGlobalRuntime`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.geode.lang.Identifiable

      `exists, find, remove`

- - ### Field Detail

    - #### PDX_ID

          public static final String PDX_ID

      See Also:
        Constant Field Values

    - #### PDX_ENDPOINT

          public static final String PDX_ENDPOINT

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### Pdx

          public Pdx()

  - ### Method Detail

    - #### getId

          public String getId()

      Returns `PDX_ID`
      Specified by:
        `getId` in interface `Identifiable<String>`
      Specified by:
        `getId` in class `AbstractConfiguration<PdxInfo>`
      Returns:
        an identifier uniquely identifying this Object.

    - #### getLinks

          public Links getLinks()

      Description copied from class: `AbstractConfiguration`
      for internal usage only
      Specified by:
        `getLinks` in class `AbstractConfiguration<PdxInfo>`

    - #### getAutoSerializer

          public AutoSerializer getAutoSerializer()

    - #### setAutoSerializer

          public void setAutoSerializer(AutoSerializer autoSerializer)

      Throws:
        `IllegalArgumentException` - if a pdxSerializer has already been set

    - #### isReadSerialized

          public Boolean isReadSerialized()

    - #### setReadSerialized

          public void setReadSerialized(Boolean readSerialized)

      Setting readSerialized to true causes any pdx deserialization to produce instances of org.apache.geode.pdx.PdxInstance interface in the geode-core module instead of a domain class instance.

    - #### getPdxSerializer

          public ClassName getPdxSerializer()

    - #### setPdxSerializer

          public void setPdxSerializer(ClassName pdxSerializer)

      Parameters:
        `pdxSerializer` - the class name given must implement the org.apache.geode.pdx.PdxSerializer interface from the geode-core module.
      Throws:
        `IllegalArgumentException` - if an autoSerializer has already been set

    - #### isIgnoreUnreadFields

          public Boolean isIgnoreUnreadFields()

    - #### setIgnoreUnreadFields

          public void setIgnoreUnreadFields(Boolean ignoreUnreadFields)

      Setting ignoreUnreadFields to true can save memory during pdx deserialization but if the deserialized object is reserialized then the unread field data will be lost. Unread fields will only exist if a class serialized with pdx has multiple versions.

    - #### getDiskStoreName

          public String getDiskStoreName()

    - #### setDiskStoreName

          public void setDiskStoreName(String diskStoreName)

      Setting a non-null diskStoreName causes the Pdx information to be persisted to the named disk store. To configure Pdx to use the default disk store, set the diskStoreName to "DEFAULT".