Interface MessageSizeEstimator.Handle

All Known Implementing Classes:
DefaultMessageSizeEstimator.HandleImpl, PendingBytesTracker, PendingBytesTracker.ChannelOutboundBufferPendingBytesTracker, PendingBytesTracker.DefaultChannelPipelinePendingBytesTracker, PendingBytesTracker.NoopPendingBytesTracker
Enclosing interface:
MessageSizeEstimator

public static interface MessageSizeEstimator.Handle
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    size(Object msg)
    Calculate the size of the given message.
  • Method Details

    • size

      int size(Object msg)
      Calculate the size of the given message.
      Parameters:
      msg - The message for which the size should be calculated
      Returns:
      size The size in bytes. The returned size must be >= 0