Class TypeValidators.MaxWidthValidator

Enclosing class:
TypeValidators

public static class TypeValidators.MaxWidthValidator extends TypeValidators.LongValidator
Max width is a special validator which computes and validates the maxwidth. If the maxwidth is already set in system/session the value is returned or else it is computed dynamically based on the available number of processors and cpu load average
  • Constructor Details

  • Method Details

    • computeMaxWidth

      public int computeMaxWidth(double cpuLoadAverage, long maxWidth)