Enum Class RedisStreamCommands.StreamDeletionPolicy
java.lang.Object
java.lang.Enum<RedisStreamCommands.StreamDeletionPolicy>
org.springframework.data.redis.connection.RedisStreamCommands.StreamDeletionPolicy
- All Implemented Interfaces:
Serializable,Comparable<RedisStreamCommands.StreamDeletionPolicy>,Constable
- Enclosing interface:
- RedisStreamCommands
public static enum RedisStreamCommands.StreamDeletionPolicy
extends Enum<RedisStreamCommands.StreamDeletionPolicy>
Deletion policy for stream entries - specifies how to handle consumer group references when deleting stream
entries.
- Since:
- 4.1
- Author:
- Viktoriya Kutsarova
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRemove entries that meet the specified strategy and that have been read and acknowledged by all consumer groups.Remove entries according to the specified strategy and remove all references to these entries from all consumer groups' PEL.Remove entries according to the specified strategy, but preserve existing references to these entries in all consumer groups' PEL (Pending Entries List). -
Method Summary
Modifier and TypeMethodDescriptiondelete()Factory method forDELETE_REFERENCES.keep()Factory method forKEEP_REFERENCES.Factory method forACKNOWLEDGED.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KEEP_REFERENCES
Remove entries according to the specified strategy, but preserve existing references to these entries in all consumer groups' PEL (Pending Entries List). -
DELETE_REFERENCES
Remove entries according to the specified strategy and remove all references to these entries from all consumer groups' PEL. -
ACKNOWLEDGED
Remove entries that meet the specified strategy and that have been read and acknowledged by all consumer groups.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
keep
Factory method forKEEP_REFERENCES. -
delete
Factory method forDELETE_REFERENCES. -
removeAcknowledged
Factory method forACKNOWLEDGED.
-