Class DefaultMessageSizeEstimator.HandleImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int unknownSize  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private HandleImpl​(int unknownSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int size​(java.lang.Object msg)
      Calculate the size of the given message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • unknownSize

        private final int unknownSize
    • Constructor Detail

      • HandleImpl

        private HandleImpl​(int unknownSize)
    • Method Detail

      • size

        public int size​(java.lang.Object msg)
        Description copied from interface: MessageSizeEstimator.Handle
        Calculate the size of the given message.
        Specified by:
        size in interface MessageSizeEstimator.Handle
        Parameters:
        msg - The message for which the size should be calculated
        Returns:
        size The size in bytes. The returned size must be >= 0