congbobo184 opened a new pull request, #17423:
URL: https://github.com/apache/pulsar/pull/17423

   ### Motivation
   now `org.apache.pulsar.client.api.transaction.Transaction` dont have a 
interface for user to get the transaction state.
   
   user can get the transaction state to do user's own op.
   ### Modifications
   1. add the interface in 
`org.apache.pulsar.client.api.transaction.Transaction`     `getState`
   2. TransactionImpl implement the interface 
   ```
        * Get transaction state.
        *
        * @return {@link State} the state of the transaction.
        */
       State getState();
   ```
   ### Verifying this change
   add the test
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs 
/ not documented)
     - If a feature is not applicable for documentation, explain why?
     - If a feature is not documented yet in this PR, please create a followup 
issue for adding the documentation
   
   - [x] `doc-not-needed`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to