◆ ~ServiceInfoProvider()
| virtual pulsar::ServiceInfoProvider::~ServiceInfoProvider |
( |
| ) |
|
|
virtualdefault |
The destructor will be called when Client::close() is invoked, and the provider should stop any ongoing work and release the resources in the destructor.
◆ initialize()
| virtual void pulsar::ServiceInfoProvider::initialize |
( |
std::function< void(ServiceInfo)> | onServiceInfoUpdate | ) |
|
|
pure virtual |
Initialize the ServiceInfoProvider.
After the client has obtained the initial ServiceInfo via initialServiceInfo, this method is called to allow the provider to start any background work (for example, service discovery or watching configuration changes) and to report subsequent updates to the service information.
- Parameters
-
| onServiceInfoUpdate | the callback to deliver updated ServiceInfo values to the client after the initial connection has been established |
Implementations may choose not to invoke onServiceInfoUpdate if the ServiceInfo never changes.
Implemented in pulsar::AutoClusterFailover.
◆ initialServiceInfo()
| virtual ServiceInfo pulsar::ServiceInfoProvider::initialServiceInfo |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: