ClientConfiguration

data class ClientConfiguration(key: KeyConfiguration = KeyConfiguration(), httpClient: HttpConfiguration = HttpConfiguration(), logging: LoggingConfiguration = LoggingConfiguration(), event: EventConfiguration = EventConfiguration(), throttler: BaseThrottler = BatchThrottler(), nThread: Int = 4)

Configuration class for client settings.

Constructors

Link copied to clipboard
constructor(key: KeyConfiguration = KeyConfiguration(), httpClient: HttpConfiguration = HttpConfiguration(), logging: LoggingConfiguration = LoggingConfiguration(), event: EventConfiguration = EventConfiguration(), throttler: BaseThrottler = BatchThrottler(), nThread: Int = 4)

Functions

Link copied to clipboard
fun event(config: EventConfiguration.() -> Unit)

Configures events using the settings specified in EventConfiguration.

Link copied to clipboard
fun httpClient(config: HttpConfiguration.() -> Unit)

Configures the HTTP settings for the client.

Link copied to clipboard
fun key(config: KeyConfiguration.() -> Unit)

Configures key using the settings specified in KeyConfiguration.

Link copied to clipboard
fun logging(config: LoggingConfiguration.() -> Unit)

Configures logging using the settings specified in LoggingConfiguration.