ServiceKind Class

public final class ServiceKind
extends ExpandableStringEnum<ServiceKind>

The kind of service (Stateless or Stateful).

Field Summary

Modifier and Type Field and Description
static final ServiceKind INVALID

Static value Invalid for ServiceKind.

static final ServiceKind STATEFUL

Static value Stateful for ServiceKind.

static final ServiceKind STATELESS

Static value Stateless for ServiceKind.

Constructor Summary

Constructor Description
ServiceKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ServiceKind value.

Method Summary

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

Creates or finds a ServiceKind from its string representation.

static Collection<ServiceKind> values()

Gets known ServiceKind values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

INVALID

public static final ServiceKind INVALID

Static value Invalid for ServiceKind.

STATEFUL

public static final ServiceKind STATEFUL

Static value Stateful for ServiceKind.

STATELESS

public static final ServiceKind STATELESS

Static value Stateless for ServiceKind.

Constructor Details

ServiceKind

@Deprecated
public ServiceKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ServiceKind value.

Method Details

fromString

public static ServiceKind fromString(String name)

Creates or finds a ServiceKind from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ServiceKind.

values

public static Collection<ServiceKind> values()

Gets known ServiceKind values.

Returns:

known ServiceKind values.

Applies to