public enum LeaseCheckMode extends Enum<LeaseCheckMode>
| Enum Constant and Description |
|---|
DISABLED
No lease check is done at all.
|
LENIENT
Lease check is lenient and gives the lease update thread a chance to
renew the lease even though the lease end was reached.
|
STRICT
Lease check is strict and fail immediately when the lease end is reached.
|
| Modifier and Type | Method and Description |
|---|---|
static LeaseCheckMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeaseCheckMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeaseCheckMode STRICT
public static final LeaseCheckMode LENIENT
public static final LeaseCheckMode DISABLED
public static LeaseCheckMode[] values()
for (LeaseCheckMode c : LeaseCheckMode.values()) System.out.println(c);
public static LeaseCheckMode 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 © 2012–2018 The Apache Software Foundation. All rights reserved.