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).booleanisGt()booleanbooleanbooleanisIncr()booleanisLt()booleanbooleanisUpsert()lt()Applies LT mode.nx()Applies nx mode (Don't update already existing elements.to(ByteBuffer key) Applies the key.Creates a newReactiveZSetCommands.ZAddCommandgiven 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
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
-
tuple
Creates a newReactiveZSetCommands.ZAddCommandgiven aTuple.- Parameters:
tuple- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAddCommandforTuple.
-
tuples
- Parameters:
tuples- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAddCommandforTuple.
-
to
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveZSetCommands.ZAddCommandwith 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.ZAddCommandwith 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.ZAddCommandwith 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.ZAddCommandwith 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.ZAddCommandwith incr applied.
-
gt
Applies GT mode. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZAddCommandwith incr applied. - Since:
- 2.5
-
lt
Applies LT mode. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveZSetCommands.ZAddCommandwith incr applied. - Since:
- 2.5
-
getTuples
- Returns:
-
isUpsert
public boolean isUpsert()- Returns:
trueif the command does not contain NX or XX flags.
-
isIfExists
public boolean isIfExists()- Returns:
trueif the command contains the XX flag.- Since:
- 3.1.5
-
isIfNotExists
public boolean isIfNotExists()- Returns:
trueif the command contains the NX flag.- Since:
- 3.1.5
-
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:
-