public class PortableTypeConfiguration extends Object
PortableMarshaller.setClassNames(Collection).
However, this class allows you to change configuration properties for a specific
portable type without affecting configuration for other portable types.
Per-type portable configuration can be specified in PortableMarshaller.getTypeConfigurations() method.
| Constructor and Description |
|---|
PortableTypeConfiguration() |
PortableTypeConfiguration(String clsName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAffinityKeyFieldName()
Gets affinity key field name.
|
String |
getClassName()
Gets type name.
|
PortableIdMapper |
getIdMapper()
Gets ID mapper.
|
PortableSerializer |
getSerializer()
Gets serializer.
|
Boolean |
isKeepDeserialized()
Defines whether
PortableObject should cache deserialized instance. |
Boolean |
isMetaDataEnabled()
Defines whether meta data is collected for this type.
|
Boolean |
isUseTimestamp()
If
true then date values converted to Timestamp during unmarshalling. |
void |
setAffinityKeyFieldName(String affKeyFieldName)
Sets affinity key field name.
|
void |
setClassName(String clsName)
Sets type name.
|
void |
setIdMapper(PortableIdMapper idMapper)
Sets ID mapper.
|
void |
setKeepDeserialized(Boolean keepDeserialized) |
void |
setMetaDataEnabled(Boolean metaDataEnabled) |
void |
setSerializer(PortableSerializer serializer)
Sets serializer.
|
void |
setUseTimestamp(Boolean useTs) |
String |
toString() |
public PortableTypeConfiguration()
public PortableTypeConfiguration(String clsName)
clsName - Class name.public String getClassName()
public void setClassName(String clsName)
clsName - Type name.public PortableIdMapper getIdMapper()
public void setIdMapper(PortableIdMapper idMapper)
idMapper - ID mapper.public PortableSerializer getSerializer()
public void setSerializer(PortableSerializer serializer)
serializer - Serializer.public Boolean isUseTimestamp()
true then date values converted to Timestamp during unmarshalling.Timestamp during unmarshalling.public void setUseTimestamp(Boolean useTs)
useTs - Flag indicating whether date values converted to Timestamp during unmarshalling.public Boolean isMetaDataEnabled()
PortableMarshaller.isMetaDataEnabled() property.public void setMetaDataEnabled(Boolean metaDataEnabled)
metaDataEnabled - Whether meta data is collected.public Boolean isKeepDeserialized()
PortableObject should cache deserialized instance. If provided,
this value will override PortableMarshaller.isKeepDeserialized()
property.public void setKeepDeserialized(Boolean keepDeserialized)
keepDeserialized - Whether deserialized value is kept.public String getAffinityKeyFieldName()
public void setAffinityKeyFieldName(String affKeyFieldName)
affKeyFieldName - Affinity key field name.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015