Class ResourcesConsumption.ResourcesConsumptionBuilder

  • Enclosing class:
    ResourcesConsumption

    public static final class ResourcesConsumption.ResourcesConsumptionBuilder
    extends Object
    Builder of resources consumption instance.
    • Constructor Detail

      • ResourcesConsumptionBuilder

        public ResourcesConsumptionBuilder()
        Constructs the builder.
    • Method Detail

      • build

        public ResourcesConsumption build()
        Returns a new resources consumption object instantiated according to values set in the builder.
        Returns:
        the new resources consumption object, never null
      • comparisonTimeInSeconds

        public ResourcesConsumption.ResourcesConsumptionBuilder comparisonTimeInSeconds​(long time)
        Sets comparison time in seconds.
        Parameters:
        time - the comparison time in seconds
        Returns:
        the builder itself, never null
      • comparisonMemoryInMbs

        public ResourcesConsumption.ResourcesConsumptionBuilder comparisonMemoryInMbs​(long mbs)
        Sets comparison memory in megabytes.
        Parameters:
        mbs - the comparison memory in megabytes
        Returns:
        the builder itself, never null