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

br.com.guiabolso.events.server.handler.EventHandlerRegistry.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 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