net.anotheria.anoprise.eventservice.EventChannel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ano-prise Show documentation
Show all versions of ano-prise Show documentation
Collection of utils for different enterprise class projects. Among other stuff contains
Caches, Mocking, DualCrud, MetaFactory and SessionDistributorService. Visit https://opensource.anotheria.net for details.
package net.anotheria.anoprise.eventservice;
/**
* This interface describes an event channel - a channel to send over events.
* @author lrosenberg
* Created on 22.09.2004
*/
public interface EventChannel {
/**
* Pushes a new event in the channel.
* @param e
*/
public void push(Event e);
/**
* Adds a consumer to this channel.
* @param consumer consumer to add.
*/
public void addConsumer(EventServiceConsumer consumer);
/**
* Removes a consumer from this channel.
* @param consumer to remove.
*/
public void removeConsumer(EventServiceConsumer consumer);
/**
* Returns the name of this channel.
* @return the name of the channel.
*/
public String getName();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy