com.trendyol.kediatr.Mediator.kt Maven / Gradle / Ivy
package com.trendyol.kediatr
interface Mediator {
suspend fun , TResponse> send(query: TQuery): TResponse
suspend fun send(command: TCommand)
suspend fun , TResult> send(command: TCommand): TResult
/**
* Publishes the given notification to appropriate notification handlers
*
* @since 1.0.9
* @param T any [Notification] subclass to publish
*/
suspend fun publish(notification: T)
suspend fun publish(
notification: T,
publishStrategy: PublishStrategy
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy