private static String getSchemaId(Properties properties, Schema schema) throws SchemaRegistryException { KafkaAvroSchemaRegistry kafkaAvroSchemaRegistry = (KafkaAvroSchemaRegistry) new KafkaAvroSchemaRegistryFactory().create(properties); return kafkaAvroSchemaRegistry.register(schema); }
private static String getSchemaId(Properties properties, Schema schema) throws SchemaRegistryException { KafkaAvroSchemaRegistry kafkaAvroSchemaRegistry = (KafkaAvroSchemaRegistry) new KafkaAvroSchemaRegistryFactory().create(properties); return kafkaAvroSchemaRegistry.register(schema); }