Class ObjectSerializationEncoder

    • Constructor Detail

      • ObjectSerializationEncoder

        public ObjectSerializationEncoder()
        Creates a new instance.
    • Method Detail

      • getMaxObjectSize

        public int getMaxObjectSize()
        Returns:
        the allowed maximum size of the encoded object. If the size of the encoded object exceeds this value, this encoder will throw a IllegalArgumentException. The default value is Integer.MAX_VALUE.
      • setMaxObjectSize

        public void setMaxObjectSize​(int maxObjectSize)
        Sets the allowed maximum size of the encoded object. If the size of the encoded object exceeds this value, this encoder will throw a IllegalArgumentException. The default value is Integer.MAX_VALUE.
        Parameters:
        maxObjectSize - the maximum size for an encoded object