Skip to content

Commit

Permalink
Explicitly calling out the need to close the client in both the produ…
Browse files Browse the repository at this point in the history
…cer and consumer (#4)
  • Loading branch information
JGailor authored and merlimat committed Sep 8, 2016
1 parent d876f75 commit d913f71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ while (true) {
// Acknowledge the message so that it can be deleted by broker
consumer.acknowledge(msg);
}

client.close();
```


Expand All @@ -137,4 +139,6 @@ Producer producer = client.createProducer(
for (int i = 0; i < 10; i++) {
producer.send("my-message".getBytes());
}

client.close();
```

0 comments on commit d913f71

Please sign in to comment.