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

co.com.sofka.infraestructure.bus.EventBus Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package co.com.sofka.infraestructure.bus;

import co.com.sofka.domain.generic.DomainEvent;
import co.com.sofka.infraestructure.event.ErrorEvent;

/**
 * The interface Event bus.
 */
public interface EventBus {
    /**
     * Publish.
     *
     * @param event the event
     */
    void publish(DomainEvent event);

    /**
     * Publish error.
     *
     * @param errorEvent the error event
     */
    void publishError(ErrorEvent errorEvent);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy