public enum CommandLogMode extends Enum<CommandLogMode>
The default mode is FROM_END so that only new commands will be polled; commands existing in the command log
are skipped when starting the application.
| Enum Constant and Description |
|---|
FROM_END
No replay at all, only newly added commands will be polled
|
FROM_LAST
Resumes polling from the position of the last poll; works only if this mode was used also previously
|
REPLAY_ALL
All commands in the command log are replayed
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_POLLER_ID
Poller ID used for
FROM_LAST mode. |
| Modifier and Type | Method and Description |
|---|---|
static CommandLogMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandLogMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandLogMode REPLAY_ALL
public static final CommandLogMode FROM_LAST
public static final CommandLogMode FROM_END
public static final String DEFAULT_POLLER_ID
FROM_LAST mode.public static CommandLogMode[] values()
for (CommandLogMode c : CommandLogMode.values()) System.out.println(c);
public static CommandLogMode 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 © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.