Class CopyCommand
- java.lang.Object
-
- com.moilioncircle.redis.replicator.event.AbstractEvent
-
- com.moilioncircle.redis.replicator.cmd.impl.AbstractCommand
-
- com.moilioncircle.redis.replicator.cmd.impl.CopyCommand
-
- All Implemented Interfaces:
Command,Event,Serializable
@CommandSpec(command="COPY") public class CopyCommand extends AbstractCommand
- Since:
- 3.5.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 CopyCommand()CopyCommand(byte[] source, byte[] destination, Integer db, boolean replace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetDb()byte[]getDestination()byte[]getSource()booleanisReplace()voidsetDb(Integer db)voidsetDestination(byte[] destination)voidsetReplace(boolean replace)voidsetSource(byte[] source)-
Methods inherited from class com.moilioncircle.redis.replicator.event.AbstractEvent
getContext, setContext
-
-
-
-
Constructor Detail
-
CopyCommand
public CopyCommand()
-
CopyCommand
public CopyCommand(byte[] source, byte[] destination, Integer db, boolean replace)
-
-
Method Detail
-
getSource
public byte[] getSource()
-
setSource
public void setSource(byte[] source)
-
getDestination
public byte[] getDestination()
-
setDestination
public void setDestination(byte[] destination)
-
getDb
public Integer getDb()
-
setDb
public void setDb(Integer db)
-
isReplace
public boolean isReplace()
-
setReplace
public void setReplace(boolean replace)
-
-