@Experimental public class Pdx extends AbstractConfiguration<PdxInfo>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PDX_ENDPOINT |
static java.lang.String |
PDX_ID |
CLUSTER| Constructor and Description |
|---|
Pdx() |
| Modifier and Type | Method and Description |
|---|---|
AutoSerializer |
getAutoSerializer() |
java.lang.String |
getDiskStoreName() |
java.lang.String |
getId()
Returns
PDX_ID |
Links |
getLinks() |
ClassName |
getPdxSerializer() |
java.lang.Boolean |
isIgnoreUnreadFields() |
java.lang.Boolean |
isReadSerialized() |
void |
setAutoSerializer(AutoSerializer autoSerializer) |
void |
setDiskStoreName(java.lang.String diskStoreName)
Setting a non-null diskStoreName causes the Pdx information to be persisted to the named disk
store.
|
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.
|
void |
setPdxSerializer(ClassName pdxSerializer) |
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 geode-core module instead of a domain class
instance.
|
getCreationCommandType, getGroup, getGroupName, isCluster, isGlobalRuntimepublic static final java.lang.String PDX_ID
public static final java.lang.String PDX_ENDPOINT
public java.lang.String getId()
PDX_IDgetId in interface org.apache.geode.lang.Identifiable<java.lang.String>getId in class AbstractConfiguration<PdxInfo>public Links getLinks()
getLinks in class AbstractConfiguration<PdxInfo>public AutoSerializer getAutoSerializer()
public void setAutoSerializer(AutoSerializer autoSerializer)
autoSerializer - the AutoSerializer to usejava.lang.IllegalArgumentException - if a pdxSerializer has already been setpublic java.lang.Boolean isReadSerialized()
public void setReadSerialized(java.lang.Boolean readSerialized)
readSerialized - a Boolean specifying whether Pdx deserialization should produce only
instances of org.apache.geode.pdx.PdxInstancepublic ClassName getPdxSerializer()
public void setPdxSerializer(ClassName pdxSerializer)
pdxSerializer - the class name given must implement the
org.apache.geode.pdx.PdxSerializer interface from the geode-core module.java.lang.IllegalArgumentException - if an autoSerializer has already been setpublic java.lang.Boolean isIgnoreUnreadFields()
public void setIgnoreUnreadFields(java.lang.Boolean ignoreUnreadFields)
ignoreUnreadFields - a Boolean specifying if unread fields should be ignored when
deserializingpublic java.lang.String getDiskStoreName()
public void setDiskStoreName(java.lang.String diskStoreName)
diskStoreName - the name of the disk store to persist Pdx information to