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.getCount()
getRank()
lPosOf
(ByteBuffer element) Creates a newReactiveListCommands.LPosCommand
for given element.Applies the rank parameter specifying the "rank" of the first element to return.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
lPosOf
Creates a newReactiveListCommands.LPosCommand
for given element.- Parameters:
element
-- Returns:
- a new
ReactiveListCommands.LPosCommand
for 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.LPosCommand
with 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.LPosCommand
with 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.LPosCommand
with count applied.
-
getCount
-
getRank
-
getElement
-