public final class SchemaRegistryAvroSerializerBuilder extends Object
SchemaRegistryAvroSerializer
and SchemaRegistryAvroSerializer
Constructor and Description |
---|
SchemaRegistryAvroSerializerBuilder()
Instantiates instance of Builder class.
|
Modifier and Type | Method and Description |
---|---|
SchemaRegistryAvroSerializerBuilder |
autoRegisterSchema(boolean autoRegisterSchemas)
If specified true, serializer will register schemas against Azure Schema Registry service under the specified
group.
|
SchemaRegistryAvroSerializerBuilder |
avroSpecificReader(boolean avroSpecificReader)
Specifies if objects should be deserialized into Avro SpecificRecords via Avro SpecificDatumReader
|
SchemaRegistryAvroSerializer |
buildSerializer()
Instantiates SchemaRegistry avro serializer.
|
SchemaRegistryAvroSerializerBuilder |
schemaGroup(String schemaGroup)
Specifies schema group for interacting with Azure Schema Registry service.
|
SchemaRegistryAvroSerializerBuilder |
schemaRegistryAsyncClient(SchemaRegistryAsyncClient schemaRegistryAsyncClient)
The
SchemaRegistryAsyncClient to use to interact with the Schema Registry service. |
public SchemaRegistryAvroSerializerBuilder()
public SchemaRegistryAvroSerializerBuilder schemaGroup(String schemaGroup)
schemaGroup
- Azure Schema Registry schema groupSchemaRegistryAvroSerializerBuilder
instancepublic SchemaRegistryAvroSerializerBuilder autoRegisterSchema(boolean autoRegisterSchemas)
autoRegisterSchemas
- flag for schema auto-registrationSchemaRegistryAvroSerializerBuilder
instancepublic SchemaRegistryAvroSerializerBuilder avroSpecificReader(boolean avroSpecificReader)
avroSpecificReader
- specific reader flagSchemaRegistryAvroSerializerBuilder
instancepublic SchemaRegistryAvroSerializerBuilder schemaRegistryAsyncClient(SchemaRegistryAsyncClient schemaRegistryAsyncClient)
SchemaRegistryAsyncClient
to use to interact with the Schema Registry service.schemaRegistryAsyncClient
- The SchemaRegistryAsyncClient
.SchemaRegistryAvroSerializerBuilder
instance.public SchemaRegistryAvroSerializer buildSerializer()
SchemaRegistryAvroSerializer
instanceNullPointerException
- if parameters are incorrectly set.IllegalArgumentException
- if credential is not set.Copyright © 2021 Microsoft Corporation. All rights reserved.