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.SetBitCommandgiven a key.booleangetValue()to(boolean bit) Applies the bit.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
bit
Creates a newReactiveStringCommands.SetBitCommandgiven a key.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveStringCommands.SetBitCommandfor a key.
-
atOffset
Applies the offset index. Constructs a new command instance with all previously configured properties.- Parameters:
index-- Returns:
- a new
ReactiveStringCommands.SetBitCommandwith offset applied.
-
to
Applies the bit. Constructs a new command instance with all previously configured properties.- Parameters:
bit-- Returns:
- a new
ReactiveStringCommands.SetBitCommandwith offset applied.
-
getOffset
- Returns:
- can be null.
-
getValue
public boolean getValue()- Returns:
- never null.
-