Package com.easypost.easyvcr
Enum ExpirationActions
- All Implemented Interfaces:
Serializable,Comparable<ExpirationActions>
Enums representing different actions to take when a recording is expired.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAutomatically re-record the recorded interaction.Throw an exception that the recorded interaction is expired.Warn that the recorded interaction is expired, but proceed as normal. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpirationActionsReturns the enum constant of this type with the specified name.static ExpirationActions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Warn
Warn that the recorded interaction is expired, but proceed as normal. -
ThrowException
Throw an exception that the recorded interaction is expired. -
RecordAgain
Automatically re-record the recorded interaction. This cannot be used withMode.Replay.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-