Skip to content

Commit

Permalink
Fix README file snippets.
Browse files Browse the repository at this point in the history
  • Loading branch information
conniey committed Mar 10, 2022
1 parent f94f329 commit 6091b10
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ SchemaRegistryAsyncClient schemaRegistryAsyncClient = new SchemaRegistryClientBu
#### Create `SchemaRegistryAvroSerializer` through the builder

```java readme-sample-createSchemaRegistryAvroEncoder
SchemaRegistryApacheAvroEncoder encoder = new SchemaRegistryApacheAvroEncoderBuilder()
SchemaRegistryApacheAvroSerializer encoder = new SchemaRegistryApacheAvroSerializerBuilder()
.schemaRegistryAsyncClient(schemaRegistryAsyncClient)
.schemaGroup("{schema-group}")
.buildEncoder();
Expand Down Expand Up @@ -111,7 +111,7 @@ playingCard.setPlayingCardSuit(PlayingCardSuit.SPADES);
playingCard.setIsFaceCard(false);
playingCard.setCardValue(5);

BinaryContent message = encoder.encodeMessageData(playingCard,
BinaryContent message = encoder.serializeMessageData(playingCard,
TypeReference.createInstance(BinaryContent.class));
```

Expand All @@ -122,9 +122,9 @@ The avro type `PlayingCard` is available in samples package
Deserialize a Schema Registry-compatible avro payload into a strongly-type object.

```java readme-sample-decodeSample
SchemaRegistryApacheAvroEncoder encoder = createAvroSchemaRegistryEncoder();
SchemaRegistryApacheAvroSerializer encoder = createAvroSchemaRegistryEncoder();
BinaryContent message = getSchemaRegistryAvroMessage();
PlayingCard playingCard = encoder.decodeMessageData(message, TypeReference.createInstance(PlayingCard.class));
PlayingCard playingCard = encoder.deserializeMessageData(message, TypeReference.createInstance(PlayingCard.class));
```

## Troubleshooting
Expand Down

0 comments on commit 6091b10

Please sign in to comment.