Class EncodingLimits
java.lang.Object
org.eclipse.milo.opcua.stack.core.channel.EncodingLimits
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EncodingLimitsAnEncodingLimitsthat uses the default settings.static final intThe default maximum number of chunks that a message can break down into.static final intThe default maximum size of a single chunk.static final intThe default maximum size of a message; 2MB by default.static final intMax recursion depth allowed when decoding structures that can nest indefinitely, such asDiagnosticInfoandVariant. -
Constructor Summary
ConstructorsConstructorDescriptionCreate aEncodingLimitsusing the default parameters.EncodingLimits(int maxChunkSize, int maxChunkCount, int maxMessageSize, int maxRecursionDepth) -
Method Summary
Modifier and TypeMethodDescriptionintintintint
-
Field Details
-
DEFAULT
AnEncodingLimitsthat uses the default settings. -
DEFAULT_MAX_MESSAGE_SIZE
public static final int DEFAULT_MAX_MESSAGE_SIZEThe default maximum size of a message; 2MB by default.- See Also:
-
DEFAULT_MAX_CHUNK_SIZE
public static final int DEFAULT_MAX_CHUNK_SIZEThe default maximum size of a single chunk.- See Also:
-
DEFAULT_MAX_CHUNK_COUNT
public static final int DEFAULT_MAX_CHUNK_COUNTThe default maximum number of chunks that a message can break down into.More than chunks than constitute
DEFAULT_MAX_MESSAGE_SIZEare needed because of overhead when constructing chunks; not all of the chunk size is dedicated to message bytes.- See Also:
-
DEFAULT_MAX_RECURSION_DEPTH
public static final int DEFAULT_MAX_RECURSION_DEPTHMax recursion depth allowed when decoding structures that can nest indefinitely, such asDiagnosticInfoandVariant.- See Also:
-
-
Constructor Details
-
EncodingLimits
public EncodingLimits()Create aEncodingLimitsusing the default parameters. -
EncodingLimits
public EncodingLimits(int maxChunkSize, int maxChunkCount, int maxMessageSize, int maxRecursionDepth)
-
-
Method Details
-
getMaxChunkSize
public int getMaxChunkSize() -
getMaxChunkCount
public int getMaxChunkCount() -
getMaxMessageSize
public int getMaxMessageSize() -
getMaxRecursionDepth
public int getMaxRecursionDepth()
-