MonitorProtocol Class

public final class MonitorProtocol
extends ExpandableStringEnum<MonitorProtocol>

The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.

Field Summary

Modifier and Type Field and Description
static final MonitorProtocol HTTP

Static value HTTP for MonitorProtocol.

static final MonitorProtocol HTTPS

Static value HTTPS for MonitorProtocol.

static final MonitorProtocol TCP

Static value TCP for MonitorProtocol.

Constructor Summary

Constructor Description
MonitorProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MonitorProtocol value.

Method Summary

Modifier and Type Method and Description
static MonitorProtocol fromString(String name)

Creates or finds a MonitorProtocol from its string representation.

static Collection<MonitorProtocol> values()

Gets known MonitorProtocol values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HTTP

public static final MonitorProtocol HTTP

Static value HTTP for MonitorProtocol.

HTTPS

public static final MonitorProtocol HTTPS

Static value HTTPS for MonitorProtocol.

TCP

public static final MonitorProtocol TCP

Static value TCP for MonitorProtocol.

Constructor Details

MonitorProtocol

@Deprecated
public MonitorProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MonitorProtocol value.

Method Details

fromString

public static MonitorProtocol fromString(String name)

Creates or finds a MonitorProtocol from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding MonitorProtocol.

values

public static Collection values()

Gets known MonitorProtocol values.

Returns:

known MonitorProtocol values.

Applies to