Skip to content

Commit 34b6554

Browse files
authored
Update README.md
1 parent da94a67 commit 34b6554

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ class MyConsumer {
6868
}
6969
```
7070

71+
#### 4. Minimal Configuration
72+
73+
Default configuration:
74+
```properties
75+
76+
pulsar.service-url=pulsar://localhost:6650
77+
78+
```
79+
7180
## Example project
7281

7382
#### [Java Pulsar Example Project](https://github.com/majusko/java-pulsar-example)
@@ -99,9 +108,9 @@ pulsar.consumer.default.ack-timeout-ms=30
99108

100109
```
101110

102-
###Properties explained:
111+
### Properties explained:
103112

104-
####PulsarClient
113+
#### PulsarClient
105114
- `pulsar.service-url` - URL used to connect to pulsar cluster.
106115
- `pulsar.io-threads` - Number of threads to be used for handling connections to brokers.
107116
- `pulsar.listener-threads` - Set the number of threads to be used for message listeners/subscribers.
@@ -115,7 +124,7 @@ pulsar.consumer.default.ack-timeout-ms=30
115124
- `pulsar.namespace` - Namespace separation. For example: app1/app2 OR dev/staging/prod. More in [Namespaces docs](https://pulsar.apache.org/docs/en/concepts-messaging/#namespaces).
116125
- `pulsar.tenant` - Pulsar multi-tenancy support. More in [Multi Tenancy docs](https://pulsar.apache.org/docs/en/concepts-multi-tenancy/).
117126

118-
####Consumer
127+
#### Consumer
119128
- `pulsar.consumer.default.dead-letter-policy-max-redeliver-count` - How many times should pulsar try to retry sending the message to consumer.
120129
- `pulsar.consumer.default.ack-timeout-ms` - How soon should be the message acked and how soon will dead letter mechanism try to retry to send the message.
121130

0 commit comments

Comments
 (0)