@ThreadSafe public enum LineageContext extends Enum<LineageContext>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
LineageMasterClient |
acquireMasterClient()
Acquires a lineage master client from the lineage master client pool.
|
void |
releaseMasterClient(LineageMasterClient masterClient)
Releases a lineage master client into the lineage master client pool.
|
void |
reset()
Re-initializes the
LineageContext . |
static LineageContext |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineageContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineageContext INSTANCE
public static LineageContext[] values()
for (LineageContext c : LineageContext.values()) System.out.println(c);
public static LineageContext 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 LineageMasterClient acquireMasterClient()
public void releaseMasterClient(LineageMasterClient masterClient)
masterClient
- a lineage master client to releasepublic void reset()
LineageContext
.Copyright © 2023. All Rights Reserved.