public static enum JournalReader.State extends Enum<JournalReader.State>
JournalReader.advance()
.Enum Constant and Description |
---|
CHECKPOINT
Indicates that the next item to process is a checkpoint.
|
DONE
Indicates that there is nothing left to read.
|
LOG
Indicates that the next item to process is an edit log.
|
Modifier and Type | Method and Description |
---|---|
static JournalReader.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JournalReader.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JournalReader.State CHECKPOINT
JournalReader.getCheckpoint()
.public static final JournalReader.State LOG
JournalReader.getEntry()
.public static final JournalReader.State DONE
public static JournalReader.State[] values()
for (JournalReader.State c : JournalReader.State.values()) System.out.println(c);
public static JournalReader.State 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 © 2023. All Rights Reserved.