com.trendyol.kediatr.QueryHandler.kt Maven / Gradle / Ivy
package com.trendyol.kediatr
/**
* Interface to be implemented for a non-blocking query handler
*
* @since 1.0.0
* @param TQuery any [Query] subclass to handle
* @see Query
*/
interface QueryHandler, TResponse> {
/**
* Handles a query
*
* @param query the query to handle
*/
suspend fun handle(query: TQuery): TResponse
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy