Enum AbstractDynamoDbProperties.BillingMode
- java.lang.Object
-
- java.lang.Enum<AbstractDynamoDbProperties.BillingMode>
-
- org.apereo.cas.configuration.model.support.dynamodb.AbstractDynamoDbProperties.BillingMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AbstractDynamoDbProperties.BillingMode>
- Enclosing class:
- AbstractDynamoDbProperties
public static enum AbstractDynamoDbProperties.BillingMode extends java.lang.Enum<AbstractDynamoDbProperties.BillingMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PAY_PER_REQUEST
Pay-per-request or on-demand billing means that you're charged for only the read/write requests that you use.PROVISIONED
Provisioned mode means that you specify the number of reads and writes per second that you expect your application to use.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractDynamoDbProperties.BillingMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AbstractDynamoDbProperties.BillingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROVISIONED
public static final AbstractDynamoDbProperties.BillingMode PROVISIONED
Provisioned mode means that you specify the number of reads and writes per second that you expect your application to use. Provisioned mode is a good option if any of the following are true:- You have predictable application traffic.
- You run applications whose traffic is consistent or ramps gradually.
- You can forecast capacity requirements to control costs.
-
PAY_PER_REQUEST
public static final AbstractDynamoDbProperties.BillingMode PAY_PER_REQUEST
Pay-per-request or on-demand billing means that you're charged for only the read/write requests that you use. On-demand mode is a good option if any of the following are true:- You create new tables with unknown workloads.
- You have unpredictable application traffic.
- You prefer the ease of paying for only what you use.
-
-
Method Detail
-
values
public static AbstractDynamoDbProperties.BillingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractDynamoDbProperties.BillingMode c : AbstractDynamoDbProperties.BillingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractDynamoDbProperties.BillingMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-