Replicator
, ReplicatorListener
, ReplicatorRegister
, Closeable
, AutoCloseable
public abstract class AbstractReplicator extends AbstractReplicatorListener implements Replicator
限定符和类型 | 字段 | 说明 |
---|---|---|
protected Map<CommandName,CommandParser<? extends Command>> |
commands |
|
protected Configuration |
configuration |
|
protected AtomicReference<Status> |
connected |
|
protected RedisInputStream |
inputStream |
|
protected AtomicBoolean |
manual |
|
protected Map<ModuleKey,ModuleParser<? extends Module>> |
modules |
|
protected RdbVisitor |
rdbVisitor |
closeListeners, eventListeners, exceptionListeners, rawByteListeners, statusListeners
构造器 | 说明 |
---|---|
AbstractReplicator() |
addCloseListener, addEventListener, addExceptionListener, addRawByteListener, addStatusListener, doCloseListener, doEventListener, doExceptionListener, doStatusListener, removeCloseListener, removeEventListener, removeExceptionListener, removeRawByteListener, removeStatusListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCloseListener, addEventListener, addExceptionListener, addRawByteListener, addStatusListener, removeCloseListener, removeEventListener, removeExceptionListener, removeRawByteListener, removeStatusListener
protected Configuration configuration
protected RedisInputStream inputStream
protected RdbVisitor rdbVisitor
protected final AtomicBoolean manual
protected final AtomicReference<Status> connected
protected final Map<ModuleKey,ModuleParser<? extends Module>> modules
protected final Map<CommandName,CommandParser<? extends Command>> commands
public CommandParser<? extends Command> getCommandParser(CommandName command)
getCommandParser
在接口中 ReplicatorRegister
public <T extends Command> void addCommandParser(CommandName command, CommandParser<T> parser)
addCommandParser
在接口中 ReplicatorRegister
public CommandParser<? extends Command> removeCommandParser(CommandName command)
removeCommandParser
在接口中 ReplicatorRegister
public ModuleParser<? extends Module> getModuleParser(String moduleName, int moduleVersion)
getModuleParser
在接口中 ReplicatorRegister
public <T extends Module> void addModuleParser(String moduleName, int moduleVersion, ModuleParser<T> parser)
addModuleParser
在接口中 ReplicatorRegister
public ModuleParser<? extends Module> removeModuleParser(String moduleName, int moduleVersion)
removeModuleParser
在接口中 ReplicatorRegister
public void submitEvent(Event event)
protected void setStatus(Status next)
public boolean verbose()
verbose
在接口中 ReplicatorRegister
public Status getStatus()
getStatus
在接口中 ReplicatorRegister
public Configuration getConfiguration()
getConfiguration
在接口中 ReplicatorRegister
public void setRdbVisitor(RdbVisitor rdbVisitor)
setRdbVisitor
在接口中 ReplicatorRegister
public RdbVisitor getRdbVisitor()
getRdbVisitor
在接口中 ReplicatorRegister
public void builtInCommandParserRegister()
public void open() throws IOException
open
在接口中 Replicator
IOException
public void close() throws IOException
close
在接口中 AutoCloseable
close
在接口中 Closeable
close
在接口中 Replicator
IOException
protected boolean isClosed()
protected void doClose() throws IOException
IOException
Copyright © 2019. All rights reserved.