public static enum CachedBlock.BlockPriority extends Enum<CachedBlock.BlockPriority>
Enum Constant and Description |
---|
MEMORY
Block from in-memory store
|
MULTI
Accessed multiple times
|
SINGLE
Accessed a single time (used for scan-resistance)
|
Modifier and Type | Method and Description |
---|---|
static CachedBlock.BlockPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CachedBlock.BlockPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CachedBlock.BlockPriority SINGLE
public static final CachedBlock.BlockPriority MULTI
public static final CachedBlock.BlockPriority MEMORY
public static CachedBlock.BlockPriority[] values()
for (CachedBlock.BlockPriority c : CachedBlock.BlockPriority.values()) System.out.println(c);
public static CachedBlock.BlockPriority 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 © 2011–2019 The Apache Software Foundation. All rights reserved.