orbit-client / orbit.client / OrbitClientConfig

OrbitClientConfig

data class OrbitClientConfig

Constructors

<init>

OrbitClientConfig(serviceLocator: OrbitServiceLocator = OrbitServiceLocator("orbit://localhost:50056/default"), tickRate: Duration = Duration.ofSeconds(1), pool: CoroutineDispatcher = Pools.createFixedPool("orbit-client"), railCount: Int = 128, bufferCount: Int = 10_000, packages: List<String> = listOf(), messageTimeout: Duration = Duration.ofSeconds(10), deactivationTimeout: Duration = Duration.ofSeconds(10), addressableTTL: Duration = Duration.ofMinutes(10), addressableConstructor: ExternallyConfigured<AddressableConstructor> = DefaultAddressableConstructor.DefaultAddressableConstructorSingleton)

Properties

addressableConstructor

The system to use to construct addressables.

val addressableConstructor: ExternallyConfigured<AddressableConstructor>

addressableTTL

The default TTL for addressables.

val addressableTTL: Duration

bufferCount

The number of messages (inbound) that may be queued before new messages are rejected.

val bufferCount: Int

deactivationTimeout

The default timeout for deactivation.

val deactivationTimeout: Duration

messageTimeout

The default timeout for messages.

val messageTimeout: Duration

packages

Packages to scan for addressables.

val packages: List<String>

pool

The pool where Orbit client tasks will run.

val pool: CoroutineDispatcher

railCount

The number of workers that can process a message concurrently.

val railCount: Int

serviceLocator

The service locator for the Orbit cluster to connect to.

val serviceLocator: OrbitServiceLocator

tickRate

The tick rate of the Orbit client.

val tickRate: Duration