View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

EventInputPort

	/**
	 * Sets the message listener to receive event messages from this port.
	 * A service can register only one listener for an event input port.
	 */
	void setMessageListener(MessageListener l);
	
	/**
	 * Returns the currently registered message listener.
	 */
	MessageListener getMessageListener();



MessageListener

	/*
	 * Created on 2004/12/02
	 *
	 * TODO To change the template for this generated file go to
	 * Window - Preferences - Java - Code Style - Code Templates
	 */
	package edu.gatech.cc.realjin.umiddle.net;
	
	
	/**
	 * @author jin
	 *
	 * TODO To change the template for this generated type comment go to
	 * Window - Preferences - Java - Code Style - Code Templates
	 */
	public interface MessageListener {
	    /**
	     * A message is arrived.
	     */
		void messageReceived(Message message);
	}


Link to this Page