Class ThingCommandSizeValidator

java.lang.Object
org.eclipse.ditto.base.model.signals.commands.AbstractCommandSizeValidator<ThingTooLargeException>
org.eclipse.ditto.things.model.signals.commands.ThingCommandSizeValidator

public final class ThingCommandSizeValidator extends org.eclipse.ditto.base.model.signals.commands.AbstractCommandSizeValidator<ThingTooLargeException>
Command size validator for thing commands.
  • Field Summary

    Fields inherited from class org.eclipse.ditto.base.model.signals.commands.AbstractCommandSizeValidator

    DEFAULT_LIMIT
  • Method Summary

    Modifier and Type
    Method
    Description
    The singleton instance for this command size validator.
    newInvalidSizeException(long maxSize, long actualSize, org.eclipse.ditto.base.model.headers.DittoHeaders headers)
     

    Methods inherited from class org.eclipse.ditto.base.model.signals.commands.AbstractCommandSizeValidator

    ensureValidSize, ensureValidSize, ensureValidSize, getMaxSize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • newInvalidSizeException

      protected ThingTooLargeException newInvalidSizeException(long maxSize, long actualSize, org.eclipse.ditto.base.model.headers.DittoHeaders headers)
      Specified by:
      newInvalidSizeException in class org.eclipse.ditto.base.model.signals.commands.AbstractCommandSizeValidator<ThingTooLargeException>
    • getInstance

      public static ThingCommandSizeValidator getInstance()
      The singleton instance for this command size validator. Will be initialized at first call.
      Returns:
      Singleton instance