if (this.client.getProtocol() == Protocol.Binary) {
versionCommand = new BinaryVersionCommand(latch, session
.getRemoteSocketAddress());
} else {
versionCommand = new TextVersionCommand(latch, session
.getRemoteSocketAddress());
}
session.write(versionCommand);
// Start a check thread,avoid blocking reactor thread
if (this.heartBeatThreadPool != null) {