22#include <pulsar/defines.h>
35} pulsar_logger_level_t;
37typedef void (*pulsar_logger)(pulsar_logger_level_t level,
const char *file,
int line,
const char *message,
44 bool (*is_enabled)(pulsar_logger_level_t level,
void *ctx);
49typedef struct _pulsar_client_configuration pulsar_client_configuration_t;
50typedef struct _pulsar_authentication pulsar_authentication_t;
52PULSAR_PUBLIC pulsar_client_configuration_t *pulsar_client_configuration_create();
54PULSAR_PUBLIC
void pulsar_client_configuration_free(pulsar_client_configuration_t *conf);
61PULSAR_PUBLIC
void pulsar_client_configuration_set_auth(pulsar_client_configuration_t *conf,
62 pulsar_authentication_t *authentication);
70PULSAR_PUBLIC
void pulsar_client_configuration_set_memory_limit(pulsar_client_configuration_t *conf,
71 unsigned long long memoryLimitBytes);
76PULSAR_PUBLIC
unsigned long long pulsar_client_configuration_get_memory_limit(
77 pulsar_client_configuration_t *conf);
85PULSAR_PUBLIC
void pulsar_client_configuration_set_operation_timeout_seconds(
86 pulsar_client_configuration_t *conf,
int timeout);
91PULSAR_PUBLIC
int pulsar_client_configuration_get_operation_timeout_seconds(
92 pulsar_client_configuration_t *conf);
100PULSAR_PUBLIC
void pulsar_client_configuration_set_io_threads(pulsar_client_configuration_t *conf,
106PULSAR_PUBLIC
int pulsar_client_configuration_get_io_threads(pulsar_client_configuration_t *conf);
118PULSAR_PUBLIC
void pulsar_client_configuration_set_message_listener_threads(
119 pulsar_client_configuration_t *conf,
int threads);
124PULSAR_PUBLIC
int pulsar_client_configuration_get_message_listener_threads(
125 pulsar_client_configuration_t *conf);
135PULSAR_PUBLIC
void pulsar_client_configuration_set_concurrent_lookup_request(
136 pulsar_client_configuration_t *conf,
int concurrentLookupRequest);
141PULSAR_PUBLIC
int pulsar_client_configuration_get_concurrent_lookup_request(
142 pulsar_client_configuration_t *conf);
144PULSAR_PUBLIC
void pulsar_client_configuration_set_logger(pulsar_client_configuration_t *conf,
145 pulsar_logger logger,
void *ctx);
147PULSAR_PUBLIC
void pulsar_client_configuration_set_logger_t(pulsar_client_configuration_t *conf,
150PULSAR_PUBLIC
void pulsar_client_configuration_set_use_tls(pulsar_client_configuration_t *conf,
int useTls);
152PULSAR_PUBLIC
int pulsar_client_configuration_is_use_tls(pulsar_client_configuration_t *conf);
154PULSAR_PUBLIC
void pulsar_client_configuration_set_tls_trust_certs_file_path(
155 pulsar_client_configuration_t *conf,
const char *tlsTrustCertsFilePath);
157PULSAR_PUBLIC
const char *pulsar_client_configuration_get_tls_trust_certs_file_path(
158 pulsar_client_configuration_t *conf);
160PULSAR_PUBLIC
void pulsar_client_configuration_set_tls_allow_insecure_connection(
161 pulsar_client_configuration_t *conf,
int allowInsecure);
163PULSAR_PUBLIC
void pulsar_client_configuration_set_tls_private_key_file_path(
164 pulsar_client_configuration_t *conf,
const char *private_key_file_path);
166PULSAR_PUBLIC
const char *pulsar_client_configuration_get_tls_private_key_file_path(
167 pulsar_client_configuration_t *conf);
169PULSAR_PUBLIC
void pulsar_client_configuration_set_tls_certificate_file_path(
170 pulsar_client_configuration_t *conf,
const char *certificateFilePath);
172PULSAR_PUBLIC
const char *pulsar_client_configuration_get_tls_certificate_file_path(
173 pulsar_client_configuration_t *conf);
175PULSAR_PUBLIC
int pulsar_client_configuration_is_tls_allow_insecure_connection(
176 pulsar_client_configuration_t *conf);
182PULSAR_PUBLIC
void pulsar_client_configuration_set_stats_interval_in_seconds(
183 pulsar_client_configuration_t *conf,
const unsigned int interval);
185PULSAR_PUBLIC
int pulsar_client_configuration_is_validate_hostname(pulsar_client_configuration_t *conf);
187PULSAR_PUBLIC
void pulsar_client_configuration_set_validate_hostname(pulsar_client_configuration_t *conf,
188 int validateHostName);
193PULSAR_PUBLIC
const unsigned int pulsar_client_configuration_get_stats_interval_in_seconds(
194 pulsar_client_configuration_t *conf);
Definition client_configuration.h:40