@Experimental public class Pdx extends AbstractConfiguration<PdxInfo>
Modifier and Type | Field and Description |
---|---|
static String |
PDX_ENDPOINT |
static String |
PDX_ID |
CLUSTER
Constructor and Description |
---|
Pdx() |
Modifier and Type | Method and Description |
---|---|
AutoSerializer |
getAutoSerializer() |
String |
getDiskStoreName() |
String |
getId()
Returns
PDX_ID |
Links |
getLinks() |
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.
|
getCreationCommandType, getGroup, getGroupName, isCluster, isGlobalRuntime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exists, find, remove
public static final String PDX_ID
public static final String PDX_ENDPOINT
public String getId()
PDX_ID
getId
in interface Identifiable<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 useIllegalArgumentException
- if a pdxSerializer has already been setpublic Boolean isReadSerialized()
public void setReadSerialized(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.IllegalArgumentException
- if an autoSerializer has already been setpublic Boolean isIgnoreUnreadFields()
public void setIgnoreUnreadFields(Boolean ignoreUnreadFields)
ignoreUnreadFields
- a Boolean specifying if unread fields should be ignored when
deserializingpublic String getDiskStoreName()
public void setDiskStoreName(String diskStoreName)
diskStoreName
- the name of the disk store to persist Pdx information to