@Immutable public class ConnectionConfig extends java.lang.Object implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionConfig.Builder |
Modifier and Type | Field and Description |
---|---|
static ConnectionConfig |
DEFAULT |
Constructor and Description |
---|
ConnectionConfig(int bufferSize,
int fragmentSizeHint,
java.nio.charset.Charset charset,
java.nio.charset.CodingErrorAction malformedInputAction,
java.nio.charset.CodingErrorAction unmappableInputAction,
MessageConstraints messageConstraints) |
Modifier and Type | Method and Description |
---|---|
protected ConnectionConfig |
clone() |
static ConnectionConfig.Builder |
copy(ConnectionConfig config) |
static ConnectionConfig.Builder |
custom() |
int |
getBufferSize() |
java.nio.charset.Charset |
getCharset() |
int |
getFragmentSizeHint() |
java.nio.charset.CodingErrorAction |
getMalformedInputAction() |
MessageConstraints |
getMessageConstraints() |
java.nio.charset.CodingErrorAction |
getUnmappableInputAction() |
java.lang.String |
toString() |
public static final ConnectionConfig DEFAULT
ConnectionConfig(int bufferSize, int fragmentSizeHint, java.nio.charset.Charset charset, java.nio.charset.CodingErrorAction malformedInputAction, java.nio.charset.CodingErrorAction unmappableInputAction, MessageConstraints messageConstraints)
public int getBufferSize()
public int getFragmentSizeHint()
public java.nio.charset.Charset getCharset()
public java.nio.charset.CodingErrorAction getMalformedInputAction()
public java.nio.charset.CodingErrorAction getUnmappableInputAction()
public MessageConstraints getMessageConstraints()
protected ConnectionConfig clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
public static ConnectionConfig.Builder custom()
public static ConnectionConfig.Builder copy(ConnectionConfig config)