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

jadex.bridge.component.IMessageHandler Maven / Gradle / Ivy

Go to download

Jadex bridge is a base package for kernels and platforms, i.e., it is used by both and provides commonly used interfaces and classes for active components and their management.

There is a newer version: 4.0.267
Show newest version
package jadex.bridge.component;

import jadex.bridge.service.types.security.ISecurityInfo;

/**
 *  Interface for message handlers.
 */
public interface IMessageHandler
{
	/**
	 *  Test if handler should handle a message.
	 *  @return True if it should handle the message. 
	 */
	public boolean isHandling(ISecurityInfo secinfos, IMsgHeader header, Object msg);
	
	/**
	 *  Test if handler should be removed.
	 *  @return True if it should be removed. 
	 */
	public boolean isRemove();
	
	/**
	 *  Handle the message.
	 *  @param header The header.
	 *  @param msg The message.
	 */
	public void handleMessage(ISecurityInfo secinfos, IMsgHeader header, Object msg);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy