Class ReactiveListCommands.PopCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveListCommands.PopCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveListCommands
LPOP
/RPOP command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncount
(long count) Applies the key.from
(ByteBuffer key) Applies the key.long
getCount()
left()
Creates a newReactiveListCommands.PopCommand
for right push (LPOP).right()
Creates a newReactiveListCommands.PopCommand
for right push (RPOP).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
-
right
Creates a newReactiveListCommands.PopCommand
for right push (RPOP).- Returns:
- a new
ReactiveListCommands.PopCommand
for right push (RPOP).
-
left
Creates a newReactiveListCommands.PopCommand
for right push (LPOP).- Returns:
- a new
ReactiveListCommands.PopCommand
for right push (LPOP).
-
from
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveListCommands.LSetCommand
with value applied.
-
count
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
count
-- Returns:
- a new
ReactiveListCommands.LSetCommand
with value applied. - Since:
- 2.6
-
getDirection
- Returns:
- never null.
-
getCount
public long getCount()
-