java.lang.Object
org.eclipse.milo.opcua.stack.core.channel.EncodingLimits

public class EncodingLimits extends Object
  • Field Details

    • DEFAULT

      public static final EncodingLimits DEFAULT
      An EncodingLimits that uses the default settings.
    • DEFAULT_MAX_MESSAGE_SIZE

      public static final int DEFAULT_MAX_MESSAGE_SIZE
      The default maximum size of a message; 2MB by default.
      See Also:
    • DEFAULT_MAX_CHUNK_SIZE

      public static final int DEFAULT_MAX_CHUNK_SIZE
      The default maximum size of a single chunk.
      See Also:
    • DEFAULT_MAX_CHUNK_COUNT

      public static final int DEFAULT_MAX_CHUNK_COUNT
      The default maximum number of chunks that a message can break down into.

      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.

      See Also:
    • DEFAULT_MAX_RECURSION_DEPTH

      public static final int DEFAULT_MAX_RECURSION_DEPTH
      Max recursion depth allowed when decoding structures that can nest indefinitely, such as DiagnosticInfo and Variant.
      See Also:
  • Constructor Details

  • Method Details

    • getMaxChunkSize

      public int getMaxChunkSize()
    • getMaxChunkCount

      public int getMaxChunkCount()
    • getMaxMessageSize

      public int getMaxMessageSize()
    • getMaxRecursionDepth

      public int getMaxRecursionDepth()