Skip to content

Move acknowledge APIs to another interface and improve docs - #9

Closed
BewareMyPower wants to merge 3 commits into
masterfrom
bewaremypower/ack-api
Closed

BewareMyPower wants to merge 3 commits into
masterfrom
bewaremypower/ack-api

Conversation

@BewareMyPower

Copy link
Copy Markdown
Owner

No description provided.

…ove docs

### Motivation

Currently there are many acknowledge methods in `Consumer` interface,
including:
- 7 overloads of `acknowledgeAsync`
- 4 overloads of `acknowledge`
- 3 overloads of `acknowledgeCumulativeAsync`
- 2 overloads of `acknowledgeCumulative`

The JavaDocs of these APIs are also massive and duplicated. For example,
some terms are not for application users like "pending ack", which
should not appear in API Docs.

### Modifications

- Add a new interface `MessageAcknowledger` and move the acknowledge
  APIs into this new interface.
  - Improve the API docs. For some overload methods, change them to
    default methods so that duplicated description can be avoided.

The new API docs should be much more clear than before. Though this
PR adds a new API, the API compatibility is guaranteed.
@BewareMyPower
BewareMyPower deleted the bewaremypower/ack-api branch December 7, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant