public SynchConnection( InetAddress address, int port, // ProtocolHandler protocolHandler, RedisVersion redisversion) throws ClientRuntimeException, ProviderException { super(address, port); // protocolHandler = ProtocolManager.getFactory().createProtocolHandler // (Connection.Modality.Synchronous, redisversion.id); protocolHandler = new SynchProtocol(); Assert.notNull( protocolHandler, "handlerDelegate from ProtocolManager", ProviderException.class); this.protocolHandler = Assert.notNull( protocolHandler, "the delegate protocol handler", ClientRuntimeException.class); Assert.isTrue( protocolHandler.isCompatibleWithVersion(redisversion.id), "handler delegate supports redis version " + redisversion, ClientRuntimeException.class); }