Class Payload

    • Constructor Detail

      • Payload

        public Payload()
    • Method Detail

      • size

        public abstract int size()
        Return the estimate of in-memory size of this payload.
        Returns:
        An estimate of the in-memory size of this payload.
      • serializedSize

        public abstract int serializedSize()
        Return the estimate of serialized size of this payload when passed through serialization. The estimate needs to be reasonably accurate and should err on the side of caution and report a slightly-higher size in face of uncertainty.
        Returns:
        An estimate of serialized size.
      • writeReplace

        protected abstract Object writeReplace()
        Return the serialization proxy for this object.
        Returns:
        Serialization proxy