LeaseState Class

public final class LeaseState
extends ExpandableStringEnum<LeaseState>

Lease state of the container.

Field Summary

Modifier and Type Field and Description
static final LeaseState AVAILABLE

Static value Available for LeaseState.

static final LeaseState BREAKING

Static value Breaking for LeaseState.

static final LeaseState BROKEN

Static value Broken for LeaseState.

static final LeaseState EXPIRED

Static value Expired for LeaseState.

static final LeaseState LEASED

Static value Leased for LeaseState.

Constructor Summary

Constructor Description
LeaseState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LeaseState value.

Method Summary

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

Creates or finds a LeaseState from its string representation.

static Collection<LeaseState> values()

Gets known LeaseState values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AVAILABLE

public static final LeaseState AVAILABLE

Static value Available for LeaseState.

BREAKING

public static final LeaseState BREAKING

Static value Breaking for LeaseState.

BROKEN

public static final LeaseState BROKEN

Static value Broken for LeaseState.

EXPIRED

public static final LeaseState EXPIRED

Static value Expired for LeaseState.

LEASED

public static final LeaseState LEASED

Static value Leased for LeaseState.

Constructor Details

LeaseState

@Deprecated
public LeaseState()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LeaseState value.

Method Details

fromString

public static LeaseState fromString(String name)

Creates or finds a LeaseState from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LeaseState.

values

public static Collection values()

Gets known LeaseState values.

Returns:

known LeaseState values.

Applies to