Class RedisStreamCommands.XDelOptions
java.lang.Object
org.springframework.data.redis.connection.RedisStreamCommands.XDelOptions
- Enclosing interface:
- RedisStreamCommands
Additional options applicable for XDELEX and XACKDEL commands.
- Since:
- 4.1
- Author:
- Viktoriya Kutsarova
-
Method Summary
Modifier and TypeMethodDescriptiondefaults()Create anRedisStreamCommands.XDelOptionsinstance with default options.deletionPolicy(RedisStreamCommands.StreamDeletionPolicy deletionPolicy) Set the deletion policy for the delete operation.booleaninthashCode()
-
Method Details
-
defaults
Create anRedisStreamCommands.XDelOptionsinstance with default options.This returns the default options for the XDELEX and XACKDEL commands with
RedisStreamCommands.StreamDeletionPolicy.KEEP_REFERENCESas the deletion policy, which preserves existing references in consumer groups' PELs (similar to the behavior of XDEL).- Returns:
- a default
RedisStreamCommands.XDelOptionsinstance withRedisStreamCommands.StreamDeletionPolicy.KEEP_REFERENCES.
-
deletionPolicy
public static RedisStreamCommands.XDelOptions deletionPolicy(RedisStreamCommands.StreamDeletionPolicy deletionPolicy) Set the deletion policy for the delete operation.- Parameters:
deletionPolicy- the deletion policy to apply.- Returns:
- new instance of
RedisStreamCommands.XDelOptions.
-
getDeletionPolicy
- Returns:
- the deletion policy.
-
equals
-
hashCode
public int hashCode()
-