Serializable
, Comparable<DynamoDbMapperConfig.ConsistentReads>
public static enum DynamoDbMapperConfig.ConsistentReads extends Enum<DynamoDbMapperConfig.ConsistentReads>
CONSISTENT uses consistent reads, EVENTUAL does not. Consistent reads have implications for performance and billing; see the service documentation for details.
By default, the mapper uses eventual consistency.
Enum Constant | Description |
---|---|
CONSISTENT |
|
EVENTUAL |
Modifier and Type | Method | Description |
---|---|---|
DynamoDbMapperConfig |
config() |
|
static DynamoDbMapperConfig.ConsistentReads |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static DynamoDbMapperConfig.ConsistentReads[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DynamoDbMapperConfig.ConsistentReads CONSISTENT
public static final DynamoDbMapperConfig.ConsistentReads EVENTUAL
public static DynamoDbMapperConfig.ConsistentReads[] values()
for (DynamoDbMapperConfig.ConsistentReads c : DynamoDbMapperConfig.ConsistentReads.values()) System.out.println(c);
public static DynamoDbMapperConfig.ConsistentReads 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 final DynamoDbMapperConfig config()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.