Example usage for org.springframework.boot.actuate.health Health.Builder outOfService

List of usage examples for org.springframework.boot.actuate.health Health.Builder outOfService

Introduction

In this page you can find the example usage for org.springframework.boot.actuate.health Health.Builder outOfService.

Prototype

public static Builder outOfService() 

Source Link

Document

Create a new Builder instance with an Status#OUT_OF_SERVICE status.

Usage

From source file:com.netflix.spinnaker.echo.pipelinetriggers.health.MonitoredPollerHealth.java

@Override
protected void doHealthCheck(Health.Builder builder) {
    if (!poller.isRunning()) {
        builder.outOfService();
    } else {/*from w  w  w  . j av a 2 s  .  co m*/
        polledRecently(builder);
    }
}