public static enum PersistentLease.LeaseState extends Enum<PersistentLease.LeaseState>
| Enum Constant and Description |
|---|
ACTIVE
Lease active
|
ACTIVE_NO_CONN
Lease should be active, but there are keep-alive connection
problems - it will expire if these don't recover prior to
the remaining TTL
|
CLOSED
Closed
|
EXPIRED
Lease has likely expired, will be reinstated as soon as
connectivity permits
|
PENDING
Lease existence not yet established
|
| Modifier and Type | Method and Description |
|---|---|
static PersistentLease.LeaseState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistentLease.LeaseState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistentLease.LeaseState PENDING
public static final PersistentLease.LeaseState ACTIVE
public static final PersistentLease.LeaseState ACTIVE_NO_CONN
public static final PersistentLease.LeaseState EXPIRED
public static final PersistentLease.LeaseState CLOSED
public static PersistentLease.LeaseState[] values()
for (PersistentLease.LeaseState c : PersistentLease.LeaseState.values()) System.out.println(c);
public static PersistentLease.LeaseState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023. All rights reserved.