Class ReactiveNumberCommands.HIncrByCommand<T extends Number>
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveNumberCommands.HIncrByCommand<T>
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveNumberCommands
public static class ReactiveNumberCommands.HIncrByCommand<T extends Number>
extends ReactiveRedisConnection.KeyCommand
HINCRBY
command parameters.- Since:
- 2.0
- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionApplies the numeric value.forKey
(ByteBuffer key) Applies the key.getField()
@Nullable T
getValue()
static <T extends Number>
ReactiveNumberCommands.HIncrByCommand<T> incr
(ByteBuffer field) Creates a newReactiveNumberCommands.HIncrByCommand
given akey
.Methods inherited from class ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
incr
Creates a newReactiveNumberCommands.HIncrByCommand
given akey
.- Parameters:
field
- must not be null.- Returns:
- a new
ReactiveNumberCommands.HIncrByCommand
forkey
.
-
by
Applies the numeric value. Constructs a new command instance with all previously configured properties.- Parameters:
value
- must not be null.- Returns:
- a new
ReactiveNumberCommands.HIncrByCommand
with value applied.
-
forKey
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveNumberCommands.HIncrByCommand
with key applied.
-
getValue
- Returns:
- can be null.
-
getField
- Returns:
- never null.
-