Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Transaction] Introduce Transaction Client API #4952

Merged
merged 2 commits into from
Aug 18, 2019

Conversation

sijie
Copy link
Member

@sijie sijie commented Aug 14, 2019

Motivation

Introduce the transaction API to setup the skeleton on implementing
the transactional client.

Also add an example to show how to use the transaction API.

Modifications

  • Add TransactionBuilder and Transaction
  • Add newTransaction to client
  • Add newMessage(Transaction) method to producer
  • Add acknowledgeAsyc(MessageId, Transaction) method to consumer

NOTE: these methods are only exposed to the implementation classes (ProducerImpl, ProducerImpl, and ConsumerImpl).
Will only add them to the interfaces when the features are completed.

*Motivation*

Introduce the transaction API to setup the skeleton on implementing
the transactional client.

Also add an example to show how to use the transaction API.

*Modifications*

- Add TransactionBuilder and Transaction
- Add `newTransaction` to client
- Add `newMessage(Transaction)` method to producer
- Add `acknowledgeAsyc(MessageId, Transaction)` method to consumer

NOTE: these methods are only exposed to the implementation classes (ProducerImpl, ProducerImpl, and ConsumerImpl).
Will only add them to the interfaces when the features are completed.
@sijie sijie added this to the 2.5.0 milestone Aug 14, 2019
@sijie sijie self-assigned this Aug 14, 2019
Copy link
Contributor

@codelipenghui codelipenghui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@sijie
Copy link
Member Author

sijie commented Aug 16, 2019

run java8 tests
run integration tests

1 similar comment
@sijie
Copy link
Member Author

sijie commented Aug 16, 2019

run java8 tests
run integration tests

@sijie
Copy link
Member Author

sijie commented Aug 18, 2019

run integration tests

@sijie
Copy link
Member Author

sijie commented Aug 18, 2019

run cpp tests
run java8 tests

@sijie sijie merged commit 1691cc8 into apache:master Aug 18, 2019
@sijie sijie deleted the transaction/introduce_api branch August 18, 2019 17:00
@gaoran10 gaoran10 mentioned this pull request Nov 21, 2020
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants