jadex.bridge.component.IMessageHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-platform-bridge Show documentation
Show all versions of jadex-platform-bridge Show documentation
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.
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);
}