org.clazzes.remoting.marshal
Class MarshalerFactorySupport
java.lang.Object
org.clazzes.remoting.marshal.MarshalerFactorySupport
- All Implemented Interfaces:
- MarshalerFactory
- Direct Known Subclasses:
- CompactMarshalerFactory, DefaultMarshalerFactory
public abstract class MarshalerFactorySupport
- extends java.lang.Object
- implements MarshalerFactory
A support class for the most common factory options.
- Author:
- wglas
Constructor Summary |
MarshalerFactorySupport()
Instantiate a DefaultMarsalerFactory with the input and output buffer size
set to 1460 , the most common MSS for TCP over ethernet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarshalerFactorySupport
public MarshalerFactorySupport()
- Instantiate a DefaultMarsalerFactory with the input and output buffer size
set to
1460
, the most common MSS for TCP over ethernet.
newMarshaler
public abstract Marshaler newMarshaler()
- Specified by:
newMarshaler
in interface MarshalerFactory
- Returns:
- A new marshaler instance.
getOutputBufferSize
public int getOutputBufferSize()
- Returns:
- The output buffer size to use for the generated
JAVAMarshaler
instances.
setOutputBufferSize
public void setOutputBufferSize(int outputBufferSize)
- Parameters:
outputBufferSize
- The output buffer size to set.
getInputBufferSize
public int getInputBufferSize()
- Returns:
- The input buffer size to use for the generated
JAVAMarshaler
instances.
setInputBufferSize
public void setInputBufferSize(int inputBufferSize)
- Parameters:
inputBufferSize
- The input buffer size to set.
Copyright © 2010. All Rights Reserved.