public enum LeaseCheckMode extends java.lang.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(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.