public static enum TransactionalLock.LockArea extends Enum<TransactionalLock.LockArea>
ReadWriteLock
for every area defined.Enum Constant and Description |
---|
HRC_STATUS_CACHE
Joinpoint lock around work performed on caching the host role command
status in a given stage and request.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled(Configuration configuration)
Gets whether this
TransactionalLock.LockArea is enabled. |
static TransactionalLock.LockArea |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionalLock.LockArea[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionalLock.LockArea HRC_STATUS_CACHE
public static TransactionalLock.LockArea[] values()
for (TransactionalLock.LockArea c : TransactionalLock.LockArea.values()) System.out.println(c);
public static TransactionalLock.LockArea 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 boolean isEnabled(Configuration configuration)
TransactionalLock.LockArea
is enabled.configuration
- the configuration to read from (not null
).true
if enabled, false
otherwise.Copyright © 2022 Apache Software Foundation. All rights reserved.