◆ initialize()
| void pulsar::AutoClusterFailover::initialize |
( |
std::function< void(ServiceInfo)> | onServiceInfoUpdate | ) |
|
|
finalvirtual |
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.
Implements pulsar::ServiceInfoProvider.
◆ initialServiceInfo()
| ServiceInfo pulsar::AutoClusterFailover::initialServiceInfo |
( |
| ) |
|
|
finalvirtual |
The documentation for this class was generated from the following file: