Class ZAddCommand
- java.lang.Object
-
- com.moilioncircle.redis.replicator.event.AbstractEvent
-
- com.moilioncircle.redis.replicator.cmd.impl.AbstractCommand
-
- com.moilioncircle.redis.replicator.cmd.impl.GenericKeyCommand
-
- com.moilioncircle.redis.replicator.cmd.impl.ZAddCommand
-
- All Implemented Interfaces:
Command,Event,Serializable
@CommandSpec(command="ZADD") public class ZAddCommand extends GenericKeyCommand
- Since:
- 2.1.0
- Author:
- Leon Chen
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.moilioncircle.redis.replicator.event.Event
Event.Context
-
-
Field Summary
-
Fields inherited from class com.moilioncircle.redis.replicator.event.AbstractEvent
context
-
-
Constructor Summary
Constructors Constructor Description ZAddCommand()ZAddCommand(byte[] key, ExistType existType, boolean ch, boolean incr, ZSetEntry[] zSetEntries)ZAddCommand(byte[] key, ExistType existType, CompareType compareType, boolean ch, boolean incr, ZSetEntry[] zSetEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompareTypegetCompareType()ExistTypegetExistType()ZSetEntry[]getzSetEntries()ZSetEntry[]getZSetEntries()booleanisCh()booleanisIncr()voidsetCh(boolean ch)voidsetCompareType(CompareType compareType)voidsetExistType(ExistType existType)voidsetIncr(boolean incr)voidsetzSetEntries(ZSetEntry[] zSetEntries)-
Methods inherited from class com.moilioncircle.redis.replicator.cmd.impl.GenericKeyCommand
getKey, setKey
-
Methods inherited from class com.moilioncircle.redis.replicator.event.AbstractEvent
getContext, setContext
-
-
-
-
Constructor Detail
-
ZAddCommand
public ZAddCommand()
-
ZAddCommand
public ZAddCommand(byte[] key, ExistType existType, boolean ch, boolean incr, ZSetEntry[] zSetEntries)
-
ZAddCommand
public ZAddCommand(byte[] key, ExistType existType, CompareType compareType, boolean ch, boolean incr, ZSetEntry[] zSetEntries)- Parameters:
key- keyexistType- existTypecompareType- compareType since redis 6.2ch- chincr- incrzSetEntries- zSetEntries- Since:
- 3.5.0
-
-
Method Detail
-
getExistType
public ExistType getExistType()
-
setExistType
public void setExistType(ExistType existType)
-
isCh
public boolean isCh()
-
setCh
public void setCh(boolean ch)
-
isIncr
public boolean isIncr()
-
setIncr
public void setIncr(boolean incr)
-
getZSetEntries
public ZSetEntry[] getZSetEntries()
-
getzSetEntries
public ZSetEntry[] getzSetEntries()
-
setzSetEntries
public void setzSetEntries(ZSetEntry[] zSetEntries)
-
getCompareType
public CompareType getCompareType()
- Returns:
- compareType
- Since:
- 3.5.0
-
setCompareType
public void setCompareType(CompareType compareType)
- Parameters:
compareType- compareType- Since:
- 3.5.0
-
-