public static enum MongoDbConnectorConfig.SnapshotMode extends Enum<MongoDbConnectorConfig.SnapshotMode> implements EnumeratedValue
| Enum Constant and Description |
|---|
INITIAL
Always perform an initial snapshot when starting.
|
NEVER
Never perform a snapshot and only receive new data changes.
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
includeData |
private String |
value |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
static MongoDbConnectorConfig.SnapshotMode |
parse(String value)
Determine if the supplied value is one of the predefined options.
|
static MongoDbConnectorConfig.SnapshotMode |
parse(String value,
String defaultValue)
Determine if the supplied value is one of the predefined options.
|
static MongoDbConnectorConfig.SnapshotMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MongoDbConnectorConfig.SnapshotMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MongoDbConnectorConfig.SnapshotMode INITIAL
public static final MongoDbConnectorConfig.SnapshotMode NEVER
private final String value
private final boolean includeData
public static MongoDbConnectorConfig.SnapshotMode[] values()
for (MongoDbConnectorConfig.SnapshotMode c : MongoDbConnectorConfig.SnapshotMode.values()) System.out.println(c);
public static MongoDbConnectorConfig.SnapshotMode 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 String getValue()
getValue in interface EnumeratedValuepublic static MongoDbConnectorConfig.SnapshotMode parse(String value)
value - the configuration property value; may not be nullpublic static MongoDbConnectorConfig.SnapshotMode parse(String value, String defaultValue)
value - the configuration property value; may not be nulldefaultValue - the default value; may be nullCopyright © 2020 JBoss by Red Hat. All rights reserved.