class RegistryConfig extends AbstractIdConfig implements Serializable {

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof RegistryConfig)) {
            return false;
        }

        RegistryConfig that = (RegistryConfig) o;

        if (register != that.register) {
            return false;
        }
        if (subscribe != that.subscribe) {
            return false;
        }
        if (timeout != that.timeout) {
            return false;
        }
        if (connectTimeout != that.connectTimeout) {
            return false;
        }
        if (batch != that.batch) {
            return false;
        }
        if (batchSize != that.batchSize) {
            return false;
        }
        if (heartbeatPeriod != that.heartbeatPeriod) {
            return false;
        }
        if (reconnectPeriod != that.reconnectPeriod) {
            return false;
        }
        if (!protocol.equals(that.protocol)) {
            return false;
        }
        if (address != null ? !address.equals(that.address) : that.address != null) {
            return false;
        }
        if (index != null ? !index.equals(that.index) : that.index != null) {
            return false;
        }
        if (file != null ? !file.equals(that.file) : that.file != null) {
            return false;
        }
        return parameters != null ? parameters.equals(that.parameters) : that.parameters == null;

    }

}