Class AbstractMemoryHealthIndicator

  • All Implemented Interfaces:
    org.springframework.boot.actuate.health.HealthContributor, org.springframework.boot.actuate.health.HealthIndicator
    Direct Known Subclasses:
    HeapMemoryHealthIndicator, NonHeapMemoryHealthIndicator

    public abstract class AbstractMemoryHealthIndicator
    extends org.springframework.boot.actuate.health.AbstractHealthIndicator
    • Method Detail

      • doHealthCheck

        protected final void doHealthCheck​(org.springframework.boot.actuate.health.Health.Builder builder)
                                    throws Exception
        Specified by:
        doHealthCheck in class org.springframework.boot.actuate.health.AbstractHealthIndicator
        Throws:
        Exception
      • getMemoryUsage

        protected abstract MemoryUsage getMemoryUsage​(MemoryMXBean memoryMXBean)
        Returns the MemoryUsage to perform the health check on.
        Parameters:
        memoryMXBean - the configured MemoryMXBean to extract the MemoryUsage from
        Returns:
        the MemoryUsage to perform the health check on