
br.com.guiabolso.events.server.handler.EventHandlerRegistry.kt Maven / Gradle / Ivy
package br.com.guiabolso.events.server.handler
import br.com.guiabolso.events.model.RequestEvent
import br.com.guiabolso.events.model.ResponseEvent
interface EventHandlerRegistry : EventHandlerDiscovery {
fun addAll(vararg handler: EventHandler) = addAll(handler.toList())
fun addAll(handlers: Collection) = handlers.forEach(::add)
fun add(handler: EventHandler)
fun add(eventName: String, eventVersion: Int, handler: suspend (RequestEvent) -> ResponseEvent)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy