Class SwapDBCommand
- java.lang.Object
-
- com.moilioncircle.redis.replicator.event.AbstractEvent
-
- com.moilioncircle.redis.replicator.cmd.impl.AbstractCommand
-
- com.moilioncircle.redis.replicator.cmd.impl.SwapDBCommand
-
- All Implemented Interfaces:
Command
,Event
,Serializable
@CommandSpec(command="SWAPDB") public class SwapDBCommand extends AbstractCommand
- Since:
- 2.1.1
- 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 SwapDBCommand()
SwapDBCommand(int source, int target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSource()
int
getTarget()
void
setSource(int source)
void
setTarget(int target)
-
Methods inherited from class com.moilioncircle.redis.replicator.event.AbstractEvent
getContext, setContext
-
-