PrepareKey

interface PrepareKey<V : Any> : Named

Properties

Link copied to clipboard
abstract val name: String

Functions

Link copied to clipboard
open fun get(key: String): Mono<V>
Link copied to clipboard
abstract fun getValue(key: String): Mono<PreparedValue<V>>
Link copied to clipboard
open fun prepare(key: String, value: V): Mono<Boolean>
abstract fun prepare(key: String, value: PreparedValue<V>): Mono<Boolean>
Link copied to clipboard
open fun reprepare(key: String, value: V): Mono<Boolean>
abstract fun reprepare(key: String, value: PreparedValue<V>): Mono<Boolean>
open fun reprepare(key: String, oldValue: V, newValue: V): Mono<Boolean>
abstract fun reprepare(key: String, oldValue: V, newValue: PreparedValue<V>): Mono<Boolean>
open fun reprepare(oldKey: String, oldValue: V, newKey: String, newValue: V): Mono<Boolean>
open fun reprepare(oldKey: String, oldValue: V, newKey: String, newValue: PreparedValue<V>): Mono<Boolean>
Link copied to clipboard
abstract fun rollback(key: String): Mono<Boolean>

abstract fun rollback(key: String, value: V): Mono<Boolean>

Rollback only if both key and value match

Link copied to clipboard
open fun <R> usingPrepare(key: String, value: V, then: (Boolean) -> Mono<R>): Mono<R>
open fun <R> usingPrepare(key: String, value: PreparedValue<V>, then: (Boolean) -> Mono<R>): Mono<R>