Class ReactiveZSetCommands.ZRandMemberCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveZSetCommands.ZRandMemberCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveZSetCommands
public static class ReactiveZSetCommands.ZRandMemberCommand
extends ReactiveRedisConnection.KeyCommand
ZRANDMEMBER
command parameters.- Since:
- 2.6
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(ByteBuffer key) Applies the key.long
getCount()
Creates a newReactiveZSetCommands.ZRandMemberCommand
to retrieve one random member.valueCount
(long nrValuesToRetrieve) Creates a newReactiveZSetCommands.ZRandMemberCommand
given the number of values to retrieve.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
-
valueCount
Creates a newReactiveZSetCommands.ZRandMemberCommand
given the number of values to retrieve.- Parameters:
nrValuesToRetrieve
-- Returns:
- a new
ReactiveZSetCommands.ZRandMemberCommand
for a number of values to retrieve.
-
singleValue
Creates a newReactiveZSetCommands.ZRandMemberCommand
to retrieve one random member.- Returns:
- a new
ReactiveZSetCommands.ZRandMemberCommand
to retrieve one random member.
-
from
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZRandMemberCommand
with key applied.
-
getCount
public long getCount()- Returns:
-