Class ReactiveListCommands.LPosCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveListCommands.LPosCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveListCommands
LPOS command parameters.- Since:
- 2.4
- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionApplies the count parameter specifying the number of matches to return.from(ByteBuffer key) Applies the key.@Nullable IntegergetCount()@Nullable ByteBuffer@Nullable IntegergetRank()lPosOf(ByteBuffer element) Creates a newReactiveListCommands.LPosCommandfor given element.Applies the rank parameter specifying the "rank" of the first element to return.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
-
lPosOf
Creates a newReactiveListCommands.LPosCommandfor given element.- Parameters:
element-- Returns:
- a new
ReactiveListCommands.LPosCommandfor element.
-
from
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveListCommands.LPosCommandwith key applied.
-
count
Applies the count parameter specifying the number of matches to return. Constructs a new command instance with all previously configured properties.- Parameters:
count- can be null.- Returns:
- a new
ReactiveListCommands.LPosCommandwith count applied.
-
rank
Applies the rank parameter specifying the "rank" of the first element to return. Constructs a new command instance with all previously configured properties.- Parameters:
rank- can be null.- Returns:
- a new
ReactiveListCommands.LPosCommandwith count applied.
-
getCount
-
getRank
-
getElement
-