类 AsyncRedisReplicator
- java.lang.Object
-
- com.moilioncircle.redis.replicator.AsyncRedisReplicator
-
- 所有已实现的接口:
AsyncReplicator,ReplicatorListener,ReplicatorRegister
public class AsyncRedisReplicator extends Object implements AsyncReplicator
- 从以下版本开始:
- 3.0.0
- 作者:
- Leon Chen
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Replicatorreplicator
-
构造器概要
构造器 构造器 说明 AsyncRedisReplicator(RedisURI uri)AsyncRedisReplicator(File file, FileType fileType, Configuration configuration)AsyncRedisReplicator(InputStream in, FileType fileType, Configuration configuration)AsyncRedisReplicator(String uri)AsyncRedisReplicator(String host, int port, Configuration configuration)
-
方法概要
-
-
-
字段详细资料
-
replicator
protected final Replicator replicator
-
-
构造器详细资料
-
AsyncRedisReplicator
public AsyncRedisReplicator(File file, FileType fileType, Configuration configuration) throws FileNotFoundException
-
AsyncRedisReplicator
public AsyncRedisReplicator(InputStream in, FileType fileType, Configuration configuration)
-
AsyncRedisReplicator
public AsyncRedisReplicator(String host, int port, Configuration configuration)
-
AsyncRedisReplicator
public AsyncRedisReplicator(String uri) throws URISyntaxException, IOException
-
AsyncRedisReplicator
public AsyncRedisReplicator(RedisURI uri) throws IOException
- 抛出:
IOException
-
-
方法详细资料
-
getReplicator
public <T extends Replicator> T getReplicator()
-
addRawByteListener
public boolean addRawByteListener(RawByteListener listener)
- 指定者:
addRawByteListener在接口中ReplicatorListener
-
removeRawByteListener
public boolean removeRawByteListener(RawByteListener listener)
- 指定者:
removeRawByteListener在接口中ReplicatorListener
-
builtInCommandParserRegister
public void builtInCommandParserRegister()
-
getCommandParser
public CommandParser<? extends Command> getCommandParser(CommandName command)
- 指定者:
getCommandParser在接口中ReplicatorRegister
-
addCommandParser
public <T extends Command> void addCommandParser(CommandName command, CommandParser<T> parser)
- 指定者:
addCommandParser在接口中ReplicatorRegister
-
removeCommandParser
public CommandParser<? extends Command> removeCommandParser(CommandName command)
- 指定者:
removeCommandParser在接口中ReplicatorRegister
-
getModuleParser
public ModuleParser<? extends Module> getModuleParser(String moduleName, int moduleVersion)
- 指定者:
getModuleParser在接口中ReplicatorRegister
-
addModuleParser
public <T extends Module> void addModuleParser(String moduleName, int moduleVersion, ModuleParser<T> parser)
- 指定者:
addModuleParser在接口中ReplicatorRegister
-
removeModuleParser
public ModuleParser<? extends Module> removeModuleParser(String moduleName, int moduleVersion)
- 指定者:
removeModuleParser在接口中ReplicatorRegister
-
setRdbVisitor
public void setRdbVisitor(RdbVisitor rdbVisitor)
- 指定者:
setRdbVisitor在接口中ReplicatorRegister
-
getRdbVisitor
public RdbVisitor getRdbVisitor()
- 指定者:
getRdbVisitor在接口中ReplicatorRegister
-
addEventListener
public boolean addEventListener(EventListener listener)
- 指定者:
addEventListener在接口中ReplicatorListener
-
removeEventListener
public boolean removeEventListener(EventListener listener)
- 指定者:
removeEventListener在接口中ReplicatorListener
-
addCloseListener
public boolean addCloseListener(CloseListener listener)
- 指定者:
addCloseListener在接口中ReplicatorListener
-
removeCloseListener
public boolean removeCloseListener(CloseListener listener)
- 指定者:
removeCloseListener在接口中ReplicatorListener
-
addExceptionListener
public boolean addExceptionListener(ExceptionListener listener)
- 指定者:
addExceptionListener在接口中ReplicatorListener
-
removeExceptionListener
public boolean removeExceptionListener(ExceptionListener listener)
- 指定者:
removeExceptionListener在接口中ReplicatorListener
-
addStatusListener
public boolean addStatusListener(StatusListener listener)
- 指定者:
addStatusListener在接口中ReplicatorListener
-
removeStatusListener
public boolean removeStatusListener(StatusListener listener)
- 指定者:
removeStatusListener在接口中ReplicatorListener
-
verbose
public boolean verbose()
- 指定者:
verbose在接口中ReplicatorRegister
-
getStatus
public Status getStatus()
- 指定者:
getStatus在接口中ReplicatorRegister
-
getConfiguration
public Configuration getConfiguration()
- 指定者:
getConfiguration在接口中ReplicatorRegister
-
open
public CompletableFuture<Void> open(Executor executor)
- 指定者:
open在接口中AsyncReplicator
-
close
public CompletableFuture<Void> close(Executor executor)
- 指定者:
close在接口中AsyncReplicator
-
-