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

org.dihedron.patterns.bus.Destination Maven / Gradle / Ivy

Go to download

Base set of functionalities, including simple utility classes and more complex patterns.

The newest version!
/*
 * Copyright (c) 2012-2014, Andrea Funto'. All rights reserved. See LICENSE for details.
 */ 

package org.dihedron.patterns.bus;

import org.dihedron.core.License;

/**
 * The base interface for all bus destinations.
 * 
 * @author Andrea Funto'
 */
@License
public interface Destination {
	
	/**
	 * Returns the unique identified of a destination.
	 * 
	 * @return
	 *   the unique identifier of a destination.
	 */
	String getId();
	
	/**
	 * A method invoked whenever the a new message is available on the internal 
	 * message bus; this way of dispatching information around caters for loose
	 * coupling among components.
	 * 
	 * @param message
	 *   the actual message.
	 */
	void onMessage(M message);
}	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy