Constructor and Description |
---|
MarshallingConfiguration()
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
MarshallingConfiguration |
clone()
Create a shallow clone.
|
int |
getBufferSize()
Get the configured buffer size.
|
int |
getClassCount()
Get the estimated class count for this configuration.
|
ClassExternalizerFactory |
getClassExternalizerFactory()
Get the class externalizer factory, or
null if none is specified. |
ClassResolver |
getClassResolver()
Get the class resolver, or
null if none is specified. |
ClassTable |
getClassTable()
Get the class table, or
null if none is specified. |
Creator |
getCreator()
Deprecated.
no longer used in 1.4, will be removed in a future version
|
ExceptionListener |
getExceptionListener()
Get the exception listener to use.
|
Creator |
getExternalizerCreator()
Deprecated.
no longer used in 1.4, will be removed in 1.4
|
int |
getInstanceCount()
Get the estimated instance count for this configuration.
|
ObjectResolver |
getObjectPreResolver()
Get the object pre resolver, or
null if none is specified. |
ObjectResolver |
getObjectResolver()
Get the object resolver, or
null if none is specified. |
ObjectTable |
getObjectTable()
Get the object table, or
null if none is specified. |
SerializabilityChecker |
getSerializabilityChecker()
Get the serializability checker.
|
Creator |
getSerializedCreator()
Deprecated.
no longer used in 1.4, will be removed in 1.4
|
StreamHeader |
getStreamHeader()
Get the stream header, or
null if none is specified. |
int |
getVersion()
Get the version to use, for protocols with multiple versions.
|
void |
setBufferSize(int bufferSize)
Set the configured buffer size.
|
void |
setClassCount(int classCount)
Set the estimated class count for this configuration.
|
void |
setClassExternalizerFactory(ClassExternalizerFactory classExternalizerFactory)
Set the class externalizer factory.
|
void |
setClassResolver(ClassResolver classResolver)
Set the class resolver, or
null to use the default. |
void |
setClassTable(ClassTable classTable)
Set the class table, or
null to use none. |
void |
setCreator(Creator creator)
Deprecated.
no longer used in 1.4, will be removed in a future version
|
void |
setExceptionListener(ExceptionListener exceptionListener)
Set the exception listener to use.
|
void |
setExternalizerCreator(Creator externalizerCreator)
Deprecated.
no longer used in 1.4, will be removed in 1.4
|
void |
setInstanceCount(int instanceCount)
Set the estimated instance count for this configuration.
|
void |
setObjectPreResolver(ObjectResolver objectPreResolver)
Set the object pre resolver, or
null to use none. |
void |
setObjectResolver(ObjectResolver objectResolver)
Set the object resolver, or
null to use none. |
void |
setObjectTable(ObjectTable objectTable)
Set the object table, or
null to use none. |
void |
setSerializabilityChecker(SerializabilityChecker serializabilityChecker)
Set the serializability checker.
|
void |
setSerializedCreator(Creator serializedCreator)
Deprecated.
no longer used in 1.4, will be removed in 1.4
|
void |
setStreamHeader(StreamHeader streamHeader)
Set the stream header.
|
void |
setVersion(int version)
Set the version to use, for protocols with multiple versions.
|
String |
toString() |
public MarshallingConfiguration()
public ClassExternalizerFactory getClassExternalizerFactory()
null
if none is specified.public void setClassExternalizerFactory(ClassExternalizerFactory classExternalizerFactory)
null
to use none.classExternalizerFactory
- the class externalizer factorypublic StreamHeader getStreamHeader()
null
if none is specified.public void setStreamHeader(StreamHeader streamHeader)
null
to use none.streamHeader
- the stream headerpublic ClassResolver getClassResolver()
null
if none is specified.public void setClassResolver(ClassResolver classResolver)
null
to use the default.classResolver
- the class resolverpublic ObjectResolver getObjectResolver()
null
if none is specified.public void setObjectResolver(ObjectResolver objectResolver)
null
to use none.objectResolver
- the object resolver@Deprecated public Creator getCreator()
null
if none is specified. Used only if a more specific creator type
was not specified.@Deprecated public void setCreator(Creator creator)
null
to use the default. Used only if a more specific creator type
was not specified.creator
- the object creatorpublic ObjectResolver getObjectPreResolver()
null
if none is specified.public void setObjectPreResolver(ObjectResolver objectPreResolver)
null
to use none.
Invoked before user replacement and global object resolverobjectPreResolver
- the object resolverpublic ClassTable getClassTable()
null
if none is specified.public void setClassTable(ClassTable classTable)
null
to use none.classTable
- the class tablepublic ObjectTable getObjectTable()
null
if none is specified.public void setObjectTable(ObjectTable objectTable)
null
to use none.objectTable
- the object tablepublic int getInstanceCount()
public void setInstanceCount(int instanceCount)
instanceCount
- the instance countpublic int getClassCount()
public void setClassCount(int classCount)
classCount
- the class countpublic int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize
- the buffer size, in bytespublic int getVersion()
public void setVersion(int version)
version
- the version to usepublic ExceptionListener getExceptionListener()
public void setExceptionListener(ExceptionListener exceptionListener)
exceptionListener
- the exception listener@Deprecated public Creator getExternalizerCreator()
getCreator()
.@Deprecated public void setExternalizerCreator(Creator externalizerCreator)
externalizerCreator
- the creator@Deprecated public Creator getSerializedCreator()
getCreator()
.@Deprecated public void setSerializedCreator(Creator serializedCreator)
serializedCreator
- the creatorpublic SerializabilityChecker getSerializabilityChecker()
public void setSerializabilityChecker(SerializabilityChecker serializabilityChecker)
serializabilityChecker
- the new serializability checkerpublic MarshallingConfiguration clone()
Copyright © 2018 JBoss by Red Hat. All rights reserved.