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

net.anotheria.anoprise.eventservice.EventChannel Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.0
Show newest version
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