Interface ClientAuthenticationServicesAware
PulsarClient is constructed (PIP-478).
The client calls bindClientAuthenticationServices(ClientAuthenticationServices) exactly once, on
conf.getAuthentication(), before Authentication.start() — so the bound
services (real scheduler, bounded blocking executor, HTTP client factory, client instance id) are
visible to the plugin's initializeAsync(...) and to every capability call thereafter. A driver
that is never bound (a plain v4 plugin, or one used outside a client) still does not run credential work
on the caller thread: it falls back to a shared blocking pool, because the caller thread on the paths
that skip binding — the proxy's broker connections above all — is a Netty event loop.
The built-in v4 auth shims implement this, so that a plugin driving a v5-native body sees the same
late-binding path whether it was reached from a v4 client, a v5 client or a PulsarAdmin.
The .internal. subpackage signals "stable internal" — application code should not implement
this interface; it is observed and driven by the framework.
-
Method Summary
Modifier and TypeMethodDescriptionvoidBind the framework's client services into this driver.
-
Method Details
-
bindClientAuthenticationServices
Bind the framework's client services into this driver. Called once, before the plugin is started.- Parameters:
services- the framework-owned client services
-