public class EncodingLimits extends Object
| Modifier and Type | Field and Description |
|---|---|
static EncodingLimits |
DEFAULT
An
EncodingLimits that uses the default settings. |
static int |
DEFAULT_MAX_CHUNK_COUNT
The default maximum number of chunks that a message can break down into.
|
static int |
DEFAULT_MAX_CHUNK_SIZE
The default maximum size of a single chunk.
|
static int |
DEFAULT_MAX_MESSAGE_SIZE
The default maximum size of a message; 2MB by default.
|
static int |
DEFAULT_MAX_RECURSION_DEPTH
Max recursion depth allowed when decoding structures that can nest indefinitely, such as
DiagnosticInfo and Variant. |
| Constructor and Description |
|---|
EncodingLimits()
Create a
EncodingLimits using the default parameters. |
EncodingLimits(int maxChunkSize,
int maxChunkCount,
int maxMessageSize,
int maxRecursionDepth) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxChunkCount() |
int |
getMaxChunkSize() |
int |
getMaxMessageSize() |
int |
getMaxRecursionDepth() |
public static final EncodingLimits DEFAULT
EncodingLimits that uses the default settings.public static final int DEFAULT_MAX_MESSAGE_SIZE
public static final int DEFAULT_MAX_CHUNK_SIZE
public static final int DEFAULT_MAX_CHUNK_COUNT
More than chunks than constitute DEFAULT_MAX_MESSAGE_SIZE are needed because of overhead
when constructing chunks; not all of the chunk size is dedicated to message bytes.
public static final int DEFAULT_MAX_RECURSION_DEPTH
DiagnosticInfo and Variant.public EncodingLimits()
EncodingLimits using the default parameters.public EncodingLimits(int maxChunkSize,
int maxChunkCount,
int maxMessageSize,
int maxRecursionDepth)
Copyright © 2025. All rights reserved.