All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.guiabolso.events.server.handler.ConvertingEventHandler.kt Maven / Gradle / Ivy

There is a newer version: 8.0.4
Show newest version
package br.com.guiabolso.events.server.handler

import br.com.guiabolso.events.model.RequestEvent
import br.com.guiabolso.events.model.ResponseEvent

interface ConvertingEventHandler : EventHandler {
    fun convert(input: RequestEvent): T

    suspend fun handle(input: RequestEvent, converted: T): ResponseEvent

    override suspend fun handle(event: RequestEvent): ResponseEvent = handle(event, convert(event))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy