public static class HealthMonitor.Builder extends Object
Constructor and Description |
---|
HealthMonitor.Builder() |
Modifier and Type | Method and Description |
---|---|
HealthMonitor.Builder |
attemptsBeforeDeactivation(int attemptsBeforeDeactivation)
Required.
|
HealthMonitor.Builder |
bodyRegex(String bodyRegex)
Required (if using HTTP/S).
|
HealthMonitor |
build() |
HealthMonitor.Builder |
delay(int delay)
Required.
|
HealthMonitor.Builder |
from(HealthMonitor in) |
HealthMonitor.Builder |
hostHeader(String hostHeader)
Optional (if using HTTP/S).
|
HealthMonitor.Builder |
path(String path)
Required (if using HTTP/S).
|
HealthMonitor.Builder |
statusRegex(String statusRegex)
Required (if using HTTP/S).
|
HealthMonitor.Builder |
timeout(int timeout)
Required.
|
HealthMonitor.Builder |
type(HealthMonitor.Type type)
Type of the health monitor.
|
public HealthMonitor.Builder type(HealthMonitor.Type type)
public HealthMonitor.Builder delay(int delay)
public HealthMonitor.Builder timeout(int timeout)
public HealthMonitor.Builder attemptsBeforeDeactivation(int attemptsBeforeDeactivation)
public HealthMonitor.Builder bodyRegex(String bodyRegex)
public HealthMonitor.Builder statusRegex(String statusRegex)
public HealthMonitor.Builder path(String path)
public HealthMonitor.Builder hostHeader(String hostHeader)
public HealthMonitor build()
public HealthMonitor.Builder from(HealthMonitor in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.