Class PayloadTooLargeException

All Implemented Interfaces:
Serializable

public final class PayloadTooLargeException extends RpcException
Исключение, которое сигнализирует, что payload превышает лимит канала.

Exception indicating that the payload exceeds the channel limit.

See Also:
  • Constructor Details

    • PayloadTooLargeException

      public PayloadTooLargeException(int actual, int limit)
      Создаёт исключение с фактическим размером payload и лимитом.

      Creates an exception with the actual payload size and the configured limit.

      Parameters:
      actual - фактический размер в байтах / actual payload size in bytes
      limit - лимит в байтах / maximum allowed size in bytes
  • Method Details

    • actual

      public int actual()
      Возвращает фактический размер payload, который был отклонен.

      Returns the actual payload size that was rejected.

      Returns:
      actual payload size
    • limit

      public int limit()
      Возвращает лимит размера payload для канала.

      Returns the payload size limit for the channel.

      Returns:
      configured payload size limit