Skip to content

Commit ce6a5e0

Browse files
committed
Merge pull request xetorthio#3 from russellporter/patch-2
Formatting fixes on README
2 parents bba45bd + d5e5ecb commit ce6a5e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ You can download the latests build at:
1616
http://github.com/xetorthio/rmq/downloads
1717

1818
To use it just as a producer:
19+
1920
Producer p = new Producer(new Jedis("localhost"),"some cool topic");
2021
p.publish("some cool message");
2122

22-
To use it just as a consumer you can
23+
To use it just as a consumer you can consume messages as they become available (this will block if there are no new messages):
2324

24-
consume messages as they become available (this will block if there are no new messages)
2525
Consumer c = new Consumer(new Jedis("localhost"),"consumer identifier","some cool topic");
2626
c.consume(new Callback() {
2727
public void onMessage(String topic, String message) {
2828
//do something here with the message
2929
}
3030
});
3131

32-
consume next waiting message and return right away
32+
Consume next waiting message and return right away:
3333

3434
Consumer c = new Consumer(new Jedis("localhost"),"consumer identifier","some cool topic");
3535
String message = c.consume();
3636

37-
read next message without removing it from the queue
37+
Read next message without removing it from the queue:
3838

3939
Consumer c = new Consumer(new Jedis("localhost"),"consumer identifier","some cool topic");
4040
String message = c.read();

0 commit comments

Comments
 (0)