Skip to content

Commit

Permalink
#414 readme
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jul 10, 2023
1 parent d6fd141 commit 92044d1
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ Or create it with XML file:
```java
final Producer<String, String> producer =
new KfProducer<>(
new KfXmlFlexible<String, String>("producer.xml") // file with producer config
new KfXmlFlexible<String, String>(
"producer.xml" // file with producer config
)
);
```
btw, your [XML](https://en.wikipedia.org/wiki/XML#:~:text=Extensible%20Markup%20Language%20(XML)%20is,%2Dreadable%20and%20machine%2Dreadable.) file should be in the ```resources``` look like:
Expand All @@ -139,7 +141,9 @@ Since version `0.4.6` you can create Producer with JSON file:
```java
final Producer<String, String> producer =
new KfProducer<>(
new KfJsonFlexible<String, String>("producer.json") // file with producer config
new KfJsonFlexible<String, String>(
"producer.json" // file with producer config
)
);
```

Expand All @@ -154,9 +158,10 @@ Your [JSON](https://en.wikipedia.org/wiki/JSON), located in resources directory,

Since version `0.5.6` you can create Producer with YAML file:
```java
final Producer<String, String> producer = new KfProducer<>(
new KfYamlProducerSettings<>(
"producer.yaml"
final Producer<String, String> producer =
new KfProducer<>(
new KfYamlProducerSettings<>(
"producer.yaml"
)
);
```
Expand Down Expand Up @@ -252,7 +257,9 @@ Since version `0.4.6` you can create Consumer with JSON file:
```java
final Consumer<String, String> producer =
new KfConsumer<>(
new KfJsonFlexible<String, String>("consumer.json") // file with producer config
new KfJsonFlexible<String, String>(
"consumer.json" // file with producer config
)
);
```

Expand All @@ -268,10 +275,11 @@ Your [JSON](https://en.wikipedia.org/wiki/JSON), located in resources directory,

Since version `0.5.6` you can create Consumer with YAML file:
```java
final Consumer<String, String> consumer = new KfConsumer<>(
new KfYamlConsumerSettings<>(
"consumer.yaml"
)
final Consumer<String, String> consumer =
new KfConsumer<>(
new KfYamlConsumerSettings<>(
"consumer.yaml"
)
);
```

Expand Down

0 comments on commit 92044d1

Please sign in to comment.