Class RestoreCommand
- java.lang.Object
-
- com.moilioncircle.redis.replicator.cmd.impl.RestoreCommand
-
- All Implemented Interfaces:
Command
,Event
,Serializable
public class RestoreCommand extends Object implements Command
- Since:
- 2.1.0
- Author:
- Leon Chen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected EvictType
evictType
protected Long
evictValue
-
Constructor Summary
Constructors Constructor Description RestoreCommand()
RestoreCommand(String key, long ttl, String serializedValue, Boolean isReplace, Boolean absTtl, EvictType evictType, Long evictValue)
RestoreCommand(String key, long ttl, String serializedValue, Boolean isReplace, Boolean absTtl, EvictType evictType, Long evictValue, byte[] rawKey, byte[] rawSerializedValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getAbsTtl()
EvictType
getEvictType()
Long
getEvictValue()
String
getKey()
byte[]
getRawKey()
byte[]
getRawSerializedValue()
Boolean
getReplace()
String
getSerializedValue()
long
getTtl()
void
setAbsTtl(Boolean absTtl)
void
setEvictType(EvictType evictType)
void
setEvictValue(Long evictValue)
void
setKey(String key)
void
setRawKey(byte[] rawKey)
void
setRawSerializedValue(byte[] rawSerializedValue)
void
setReplace(Boolean replace)
void
setSerializedValue(String serializedValue)
void
setTtl(long ttl)
String
toString()
-
-
-
Method Detail
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getTtl
public long getTtl()
-
setTtl
public void setTtl(long ttl)
-
getSerializedValue
public String getSerializedValue()
-
setSerializedValue
public void setSerializedValue(String serializedValue)
-
getReplace
public Boolean getReplace()
-
setReplace
public void setReplace(Boolean replace)
-
getAbsTtl
public Boolean getAbsTtl()
-
setAbsTtl
public void setAbsTtl(Boolean absTtl)
-
getEvictType
public EvictType getEvictType()
-
setEvictType
public void setEvictType(EvictType evictType)
-
getEvictValue
public Long getEvictValue()
-
setEvictValue
public void setEvictValue(Long evictValue)
-
getRawKey
public byte[] getRawKey()
-
setRawKey
public void setRawKey(byte[] rawKey)
-
getRawSerializedValue
public byte[] getRawSerializedValue()
-
setRawSerializedValue
public void setRawSerializedValue(byte[] rawSerializedValue)
-
-