Class HeapMemoryHealthCheck.Builder

    • Method Detail

      • thresholdPercent

        public HeapMemoryHealthCheck.Builder thresholdPercent​(double threshold)
        Threshol percentage. If used memory is above this threshold, reports the system is down.
        Parameters:
        threshold - threshold percentage (e.g. 87.47)
        Returns:
        updated builder instance
      • config

        public HeapMemoryHealthCheck.Builder config​(Config config)
        Set up the heap space health check via config key, if present. Configuration options:
        Heap space health check configuration
        Key Default Value Description Builder method
        "thresholdPercent" 98.0 Minimum percent of heap memory consumed for this health check to fail thresholdPercent(double)
        Parameters:
        config - Config node for heap memory
        Returns:
        updated builder instance