Package io.micronaut.pulsar.config
Interface PulsarClientConfiguration
- All Known Implementing Classes:
DefaultPulsarClientConfiguration
public interface PulsarClientConfiguration
Basic requirements for custom and default configuration to create Pulsar client.
- Since:
- 1.0
- Author:
- Haris Secic
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pulsar.client.api.Authentication
Useful for avoiding hard coding tenant name into every annotation value for producers, consumers, or readers.default Optional<org.apache.pulsar.client.api.ServiceUrlProvider>
Optional provider for Pulsar services URL.Ciphers like TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256.Protocols like TLSv1.3, TLSv1.2.Useful in development environment for using with local host or such.
-
Method Details
-
getServiceUrl
String getServiceUrl() -
getServiceUrlProvider
Optional provider for Pulsar services URL.- Returns:
- Optional bean for fetching Pulsar services URLs
-
getAuthentication
org.apache.pulsar.client.api.Authentication getAuthentication()- Returns:
- Authentication method for pulsar clients
-
getIoThreads
- Returns:
- Number of threads to allow for Pulsar library.
-
getListenerThreads
- Returns:
- Number of threads to allow for listeners from IO threads defined for Pulsar library
-
getSslProvider
- Returns:
- SSL provider if any for Pulsar to client communication encryption
-
getTlsTrustStorePath
-
getTlsTrustStorePassword
- Returns:
- trust store password if any, trust stores don't contain any sensitive information but often work better with password in Java context.
-
getTlsCertFilePath
- Returns:
- TLS certificate file path if any for TLS communication between Pulsar and clients.
-
getTlsVerifyHostname
Useful in development environment for using with local host or such.- Returns:
- Whether to verify TLS certificate host or not.
-
getTlsAllowInsecureConnection
- Returns:
- Allow insecure connection when TLS certificate is set or not.
-
getTlsCiphers
Ciphers like TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256.- Returns:
- Permitted ciphers for TLS.
-
getTlsProtocols
Protocols like TLSv1.3, TLSv1.2.- Returns:
- Permitted protocols for TLS.
-
getDefaultTenant
Useful for avoiding hard coding tenant name into every annotation value for producers, consumers, or readers.- Returns:
- Default tenant name if any.
-