BufferedSessionServiceConfig

data class BufferedSessionServiceConfig @JvmOverloads constructor(val retryPolicy: RetryPolicy = ExponentialBackoff(), val cacheConfig: SessionCacheConfig? = null)

Configuration for a BufferedSessionService.

Constructors

Link copied to clipboard
constructor(retryPolicy: RetryPolicy = ExponentialBackoff(), cacheConfig: SessionCacheConfig? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for BufferedSessionServiceConfig, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Turns on the read cache and configures it; null, the default, leaves it off.

Link copied to clipboard

Decides whether and when to retry a write that the wrapped service failed. The default retries every failure, waiting up to 30 seconds in all; reads and flushes that need the write wait meanwhile, as do later app: and user: changes from other sessions. A policy whose RetryPolicy.shouldRetry rejects failures that will not pass stops sooner.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.