Class HSetCommand
- 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.HSetCommand
-
- All Implemented Interfaces:
Command,Event,Serializable
@CommandSpec(command="HSET") public class HSetCommand 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 HSetCommand()HSetCommand(byte[] key, byte[] field, byte[] value)HSetCommand(byte[] key, Map<byte[],byte[]> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]getField()Deprecated.UsegetFields()instead.Map<byte[],byte[]>getFields()byte[]getValue()Deprecated.UsegetFields()instead.voidsetField(byte[] field)Deprecated.UsesetFields(Map)instead.voidsetFields(Map<byte[],byte[]> fields)voidsetValue(byte[] value)Deprecated.UsesetFields(Map)instead.-
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
-
HSetCommand
public HSetCommand()
-
HSetCommand
public HSetCommand(byte[] key, byte[] field, byte[] value)
-
HSetCommand
public HSetCommand(byte[] key, Map<byte[],byte[]> fields)
-
-
Method Detail
-
getField
@Deprecated public byte[] getField()
Deprecated.UsegetFields()instead. will remove this method in 4.0.0- Returns:
- field
-
setField
@Deprecated public void setField(byte[] field)
Deprecated.UsesetFields(Map)instead. will remove this method in 4.0.0- Parameters:
field- field
-
getValue
@Deprecated public byte[] getValue()
Deprecated.UsegetFields()instead. will remove this method in 4.0.0- Returns:
- value
-
setValue
@Deprecated public void setValue(byte[] value)
Deprecated.UsesetFields(Map)instead. will remove this method in 4.0.0- Parameters:
value- value
-
getFields
public Map<byte[],byte[]> getFields()
-
setFields
public void setFields(Map<byte[],byte[]> fields)
-
-