eolivelli opened a new pull request #8428:
URL: https://github.com/apache/pulsar/pull/8428
### Motivation
Currently there is no way to know if the Pulsar client has been already
closed or not, resulting in AlreadyClosedException errors.
### Modifications
Add PulsarClient#isClosed() method, that returns true is the client is
closing or has been closed.
### Verifying this change
This change added tests
### 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: (yes)
- 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? (JavaDocs)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]