• Constructor Detail

      • Pdx

        public Pdx()
    • Method Detail

      • setAutoSerializer

        public void setAutoSerializer​(AutoSerializer autoSerializer)
        Parameters:
        autoSerializer - the AutoSerializer to use
        Throws:
        java.lang.IllegalArgumentException - if a pdxSerializer has already been set
      • isReadSerialized

        public java.lang.Boolean isReadSerialized()
      • setReadSerialized

        public void setReadSerialized​(java.lang.Boolean readSerialized)
        Setting readSerialized to true causes any pdx deserialization to produce instances of org.apache.geode.pdx.PdxInstance interface in the gemfire-core module instead of a domain class instance.
        Parameters:
        readSerialized - a Boolean specifying whether Pdx deserialization should produce only instances of org.apache.geode.pdx.PdxInstance
      • 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 gemfire-core module.
        Throws:
        java.lang.IllegalArgumentException - if an autoSerializer has already been set
      • isIgnoreUnreadFields

        public java.lang.Boolean isIgnoreUnreadFields()
      • setIgnoreUnreadFields

        public void setIgnoreUnreadFields​(java.lang.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.
        Parameters:
        ignoreUnreadFields - a Boolean specifying if unread fields should be ignored when deserializing
      • getDiskStoreName

        public java.lang.String getDiskStoreName()
      • setDiskStoreName

        public void setDiskStoreName​(java.lang.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".
        Parameters:
        diskStoreName - the name of the disk store to persist Pdx information to