Class ReactiveStringCommands.SetBitCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveStringCommands.SetBitCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveStringCommands
SETBIT
command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionatOffset
(long index) Applies the offset index.bit
(ByteBuffer key) Creates a newReactiveStringCommands.SetBitCommand
given a key.boolean
getValue()
to
(boolean bit) Applies the bit.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
-
bit
Creates a newReactiveStringCommands.SetBitCommand
given a key.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveStringCommands.SetBitCommand
for a key.
-
atOffset
Applies the offset index. Constructs a new command instance with all previously configured properties.- Parameters:
index
-- Returns:
- a new
ReactiveStringCommands.SetBitCommand
with offset applied.
-
to
Applies the bit. Constructs a new command instance with all previously configured properties.- Parameters:
bit
-- Returns:
- a new
ReactiveStringCommands.SetBitCommand
with offset applied.
-
getOffset
- Returns:
- can be null.
-
getValue
public boolean getValue()- Returns:
- never null.
-