public enum EphemeralTypeEmulate353 extends Enum<EphemeralTypeEmulate353>
EphemeralType.TTL_3_5_3_EMULATION_PROPERTY
can be used to emulate support of the badly specified TTL nodes.Enum Constant and Description |
---|
CONTAINER
Container node
|
NORMAL
Standard, pre-3.5.x EPHEMERAL
|
TTL
TTL node
|
VOID
Not ephemeral
|
Modifier and Type | Field and Description |
---|---|
static long |
CONTAINER_EPHEMERAL_OWNER |
static long |
MAX_TTL |
static long |
TTL_MASK |
Modifier and Type | Method and Description |
---|---|
static EphemeralTypeEmulate353 |
get(long ephemeralOwner) |
static long |
ttlToEphemeralOwner(long ttl) |
static EphemeralTypeEmulate353 |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EphemeralTypeEmulate353[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EphemeralTypeEmulate353 VOID
public static final EphemeralTypeEmulate353 NORMAL
public static final EphemeralTypeEmulate353 CONTAINER
public static final EphemeralTypeEmulate353 TTL
public static final long CONTAINER_EPHEMERAL_OWNER
public static final long MAX_TTL
public static final long TTL_MASK
public static EphemeralTypeEmulate353[] values()
for (EphemeralTypeEmulate353 c : EphemeralTypeEmulate353.values()) System.out.println(c);
public static EphemeralTypeEmulate353 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 nullpublic static EphemeralTypeEmulate353 get(long ephemeralOwner)
public static long ttlToEphemeralOwner(long ttl)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.