类 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 Replicator
replicator
-
构造器概要
构造器 构造器 说明 AsyncRedisReplicator(RedisURI uri)
AsyncRedisReplicator(RedisURI uri, SslConfiguration sslConfiguration)
AsyncRedisReplicator(File file, FileType fileType, Configuration configuration)
AsyncRedisReplicator(InputStream in, FileType fileType, Configuration configuration)
AsyncRedisReplicator(String uri)
AsyncRedisReplicator(String host, int port, Configuration configuration)
AsyncRedisReplicator(String uri, SslConfiguration sslConfiguration)
-
方法概要
-
-
-
字段详细资料
-
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
-
AsyncRedisReplicator
public AsyncRedisReplicator(String uri, SslConfiguration sslConfiguration) throws URISyntaxException, IOException
- 参数:
uri
- redis uri.sslConfiguration
- ssl configuration.- 抛出:
IOException
- read timeout or read EOF.URISyntaxException
- 从以下版本开始:
- 3.4.2
- 另请参阅:
RedisURI
,SslConfiguration
-
AsyncRedisReplicator
public AsyncRedisReplicator(RedisURI uri, SslConfiguration sslConfiguration) throws IOException
- 参数:
uri
- redis uri.sslConfiguration
- ssl configuration.- 抛出:
IOException
- read timeout or read EOF.- 从以下版本开始:
- 3.4.2
- 另请参阅:
RedisURI
,SslConfiguration
-
-
方法详细资料
-
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
-
-