if (withReconnect) {
watchdog.setReconnect(true);
ch.pipeline().addLast(watchdog);
}
ch.pipeline().addLast(new ChannelGroupListener(channels),
new ConnectionEventTrigger(connectionEvents, connection), handler, connection);
}
});
redisBootstrap.connect(redisAddress).sync();