use of com.ctrip.xpipe.redis.core.protocal.cmd.transaction.TransactionalCommand in project x-pipe by ctripcorp.
the class MinSlavesRedisReadOnly method createTransactionalCommand.
private Command<?> createTransactionalCommand(int number) {
SimpleObjectPool<NettyClient> clientPool = keyedObjectPool.getKeyPool(new InetSocketAddress(ip, port));
ConfigSetMinSlavesToWrite configSetMinSlavesToWrite = new ConfigSetMinSlavesToWrite(null, number, scheduled);
return new TransactionalCommand(clientPool, scheduled, configSetMinSlavesToWrite, new ConfigRewrite(null, scheduled));
}
Aggregations