apache / pulsar-client-python

Apache Pulsar Python client library
https://pulsar.apache.org/
Apache License 2.0
51 stars 39 forks source link

Is there a way to get the status of client connection? #158

Open abmoussaoui opened 10 months ago

abmoussaoui commented 10 months ago

Hello,

When the pulsar server go down after a succressful connection to the python client, is there a way to check if that the connection is destroyed. like for instance

a boolean: client.is_closed()

Thanks

BewareMyPower commented 10 months ago

It's an internal detail and should not be exposed.

Currently, a Client is associated with a connection pool that manages connections to different brokers. It's meaningless to add an is_closed() method.