EvictStateCacheRefresher

open class EvictStateCacheRefresher<K, S : Any, D>(namedAggregate: NamedAggregate, val cache: Cache<K, D>, val keyConvert: (DomainEventExchange<Any>) -> K = { exchange -> @Suppress("UNCHECKED_CAST") exchange.message.aggregateId.id as K }) : StateCacheRefresher<S, D, DomainEventExchange<Any>>

主动逐出缓存.

Constructors

Link copied to clipboard
constructor(namedAggregate: NamedAggregate, cache: Cache<K, D>, keyConvert: (DomainEventExchange<Any>) -> K = { exchange -> @Suppress("UNCHECKED_CAST") exchange.message.aggregateId.id as K })

Properties

Link copied to clipboard
open override val aggregateName: String
Link copied to clipboard
val cache: Cache<K, D>
Link copied to clipboard
open override val contextName: String
Link copied to clipboard
open override val functionKind: FunctionKind
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val processorName: String
Link copied to clipboard
open override val qualifiedName: String
Link copied to clipboard
Link copied to clipboard
open override val supportedType: Class<*>

Functions

Link copied to clipboard
open override fun <A : Annotation> getAnnotation(annotationClass: Class<A>): A?
Link copied to clipboard
open fun handle(exchange: DomainEventExchange<Any>): Mono<Void>
Link copied to clipboard
open operator override fun invoke(exchange: DomainEventExchange<Any>): Mono<Void>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isSameFunction(functionInfo: FunctionInfo): Boolean
Link copied to clipboard
open override fun refresh(exchange: DomainEventExchange<Any>)
Link copied to clipboard