Class XAddCommand
- 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.XAddCommand
-
- All Implemented Interfaces:
Command,Event,Serializable
@CommandSpec(command="XADD") public class XAddCommand extends GenericKeyCommand
- Since:
- 2.6.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 XAddCommand()XAddCommand(byte[] key, MaxLen maxLen, boolean nomkstream, byte[] id, Map<byte[],byte[]> fields)XAddCommand(byte[] key, MaxLen maxLen, byte[] id, Map<byte[],byte[]> fields)XAddCommand(byte[] key, MaxLen maxLen, MinId minId, Limit limit, boolean nomkstream, byte[] id, Map<byte[],byte[]> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<byte[],byte[]>getFields()byte[]getId()LimitgetLimit()MaxLengetMaxLen()MinIdgetMinId()booleanisNomkstream()voidsetFields(Map<byte[],byte[]> fields)voidsetId(byte[] id)voidsetLimit(Limit limit)voidsetMaxLen(MaxLen maxLen)voidsetMinId(MinId minId)voidsetNomkstream(boolean nomkstream)-
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
-
-
-
-
Method Detail
-
getMaxLen
public MaxLen getMaxLen()
-
setMaxLen
public void setMaxLen(MaxLen maxLen)
-
getMinId
public MinId getMinId()
- Returns:
- min id
- Since:
- 3.5.2
-
setMinId
public void setMinId(MinId minId)
- Parameters:
minId- minId- Since:
- 3.5.2
-
getLimit
public Limit getLimit()
- Returns:
- limit
- Since:
- 3.5.2
-
setLimit
public void setLimit(Limit limit)
- Parameters:
limit- limit- Since:
- 3.5.2
-
isNomkstream
public boolean isNomkstream()
- Returns:
- nomkstream
- Since:
- 3.5.0
-
setNomkstream
public void setNomkstream(boolean nomkstream)
- Parameters:
nomkstream- nomkstream since redis 6.2- Since:
- 3.5.0
-
getId
public byte[] getId()
-
setId
public void setId(byte[] id)
-
getFields
public Map<byte[],byte[]> getFields()
-
setFields
public void setFields(Map<byte[],byte[]> fields)
-
-