Skip to content

Commit

Permalink
Documentation: Added a few more commands to BinaryProtocol.md (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
jai1 authored Oct 12, 2017
1 parent f6ae797 commit b4694c6
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion site/docs/latest/project/BinaryProtocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ message CommandMessage {
```


#### Command Ack
##### Command Ack

An `Ack` is used to signal to the broker that a given message has been
successfully processed by the application and can be discarded by the broker.
Expand Down Expand Up @@ -419,6 +419,29 @@ acknowledged.
The client should use this command to notify the application that no more
messages are coming from the consumer.

##### Command ConsumerStats

This command is sent by the client to retreive Subscriber and Consumer level
stats from the broker.
Parameters:
* `request_id` → Id of the request, used to correlate the request
and the response.
* `consumer_id` → Id of an already established consumer.

##### Command ConsumerStatsResponse

This is the broker's response to ConsumerStats request by the client.
It contains the Subscriber and Consumer level stats of the `consumer_id` sent in the request.
If the `error_code` or the `error_message` field is set it indicates that the request has failed.

##### Command Unsubscribe

This command is sent by the client to unsubscribe the `consumer_id` from the associated topic.
Parameters:
* `request_id` → Id of the request.
* `consumer_id` → Id of an already established consumer which needs to unsubscribe.


## Service discovery

### Topic lookup
Expand Down

0 comments on commit b4694c6

Please sign in to comment.