From 3e7616462589b8994384081f830a99158aa90e91 Mon Sep 17 00:00:00 2001 From: Jeremy Gailor Date: Thu, 8 Sep 2016 14:11:44 -0700 Subject: [PATCH] Explicitly calling out the need to close the client in both the producer and consumer --- docs/GettingStarted.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index 562c772568761..b65f15d52580b 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -122,6 +122,8 @@ while (true) { // Acknowledge the message so that it can be deleted by broker consumer.acknowledge(msg); } + +client.close(); ``` @@ -137,4 +139,6 @@ Producer producer = client.createProducer( for (int i = 0; i < 10; i++) { producer.send("my-message".getBytes()); } + +client.close(); ```