Class ReactiveZSetCommands.ZAddCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveZSetCommands.ZAddCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveZSetCommands
ZADD
command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionch()
Applies ch mode (Modify the return value from the number of new elements added, to the total number of elements changed).gt()
Applies GT mode.incr()
Applies incr mode (When this option is specified ZADD acts like ZINCRBY).boolean
isGt()
boolean
boolean
boolean
isIncr()
boolean
isLt()
boolean
boolean
isUpsert()
lt()
Applies LT mode.nx()
Applies nx mode (Don't update already existing elements.to
(ByteBuffer key) Applies the key.Creates a newReactiveZSetCommands.ZAddCommand
given aTuple
.tuples
(Collection<? extends Tuple> tuples) xx()
Applies xx mode (Only update elements that already exist.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
-
tuple
Creates a newReactiveZSetCommands.ZAddCommand
given aTuple
.- Parameters:
tuple
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAddCommand
forTuple
.
-
tuples
- Parameters:
tuples
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAddCommand
forTuple
.
-
to
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAddCommand
with key applied.
-
xx
Applies xx mode (Only update elements that already exist. Never add elements). Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZAddCommand
with xx applied.
-
nx
Applies nx mode (Don't update already existing elements. Always add new elements). Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZAddCommand
with nx applied.
-
ch
Applies ch mode (Modify the return value from the number of new elements added, to the total number of elements changed). Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZAddCommand
with ch applied.
-
incr
Applies incr mode (When this option is specified ZADD acts like ZINCRBY). Constructs a new command instance with all previously configured properties. Note that the command result returns the score of the member.- Returns:
- a new
ReactiveZSetCommands.ZAddCommand
with incr applied.
-
gt
Applies GT mode. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZAddCommand
with incr applied. - Since:
- 2.5
-
lt
Applies LT mode. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZAddCommand
with incr applied. - Since:
- 2.5
-
getTuples
- Returns:
-
isUpsert
public boolean isUpsert()- Returns:
true
if the command does not contain NX or XX flags.
-
isIfExists
public boolean isIfExists()- Returns:
true
if the command contains the XX flag.- Since:
- 3.0.11
-
isIfNotExists
public boolean isIfNotExists()- Returns:
true
if the command contains the NX flag.- Since:
- 3.0.11
-
isIncr
public boolean isIncr()- Returns:
-
isGt
public boolean isGt()- Returns:
- true if GT is set.
- Since:
- 2.5
-
isLt
public boolean isLt()- Returns:
- true if LT is set.
- Since:
- 2.5
-
isReturnTotalChanged
public boolean isReturnTotalChanged()- Returns:
-