Class ReactiveStreamCommands.TrimCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveStreamCommands.TrimCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveStreamCommands
XTRIM command parameters.- Since:
- 2.2
- Author:
- Mark Paluch, Christoph Strobl, Tugdual Grall, Dengliming, Mark John Moreno, jinkshower, Jeonggyu Choi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionApplies approximate trimming.approximate(boolean approximateTrimming) AppliesapproximateTrimming.@Nullable LonggetCount()booleanstream(ByteBuffer key) Creates a newReactiveStreamCommands.TrimCommandgiven akey.to(long count) Applies the numeric count.Methods inherited from class ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
stream
Creates a newReactiveStreamCommands.TrimCommandgiven akey.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveStreamCommands.TrimCommandforkey.
-
to
Applies the numeric count. Constructs a new command instance with all previously configured properties.- Parameters:
count-- Returns:
- a new
ReactiveStreamCommands.TrimCommandwith count applied.
-
approximate
Applies approximate trimming. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveStreamCommands.TrimCommandwith approximateTrimming applied. - Since:
- 2.4
-
approximate
AppliesapproximateTrimming. Constructs a new command instance with all previously configured properties.- Parameters:
approximateTrimming-- Returns:
- a new
ReactiveStreamCommands.TrimCommandwith approximateTrimming applied. - Since:
- 2.4
-
getCount
- Returns:
- can be null.
-
isApproximateTrimming
public boolean isApproximateTrimming()
-