Package-level declarations

Types

Link copied to clipboard
class AntPatternNamespace(pattern: String) : Namespace

An implementation of Namespace that matches subjects based on Ant style path patterns.

Link copied to clipboard
class AntRegexPathMatcher(val regex: Regex, val posixExtendedPattern: String, val pathVariables: Set<String>, val exact: Boolean)

Represents an Ant-style path parsed into a Regex and associated metadata.

Link copied to clipboard
value class KLogger(logger: Logger)

A wrapper around Logger providing the ability to lazily build log lines using Kotlin native string templating.

Link copied to clipboard

A non-reentrant suspending implementation of a Read-Write lock.

Link copied to clipboard
sealed interface SimpleDataSourceConfig

Configuration for creating a DataSource via SimpleDataSourceFactory.

Link copied to clipboard

A factory for creating DataSource instances from simplified configurations. Allows easy setup for tests and examples.

Functions

Link copied to clipboard
inline fun <T : Any> getLogger(): KLogger

Returns a KLogger instance for the specified class T.

Link copied to clipboard
suspend fun <T> withTimeout(duration: Duration, block: suspend CoroutineScope.() -> T): T
suspend fun <T> withTimeout(millis: Long, block: suspend CoroutineScope.() -> T): T
suspend fun <T> withTimeout(duration: Duration, block: suspend CoroutineScope.() -> T): T

Use this instead of kotlinx.coroutines.withTimeout as that throws TimeoutCancellationException which extends CancellationException and can result in unexpected behaviour