jGCS Documentation

net.sf.jgcs
Interface MessageListener

All Known Subinterfaces:
ServiceListener

public interface MessageListener

This class defines a MessageListener. This listener must be used to receive messages.

Version:
1.0
Author:
Nuno Carvalho
See Also:
DataSession, Service, ServiceListener

Method Summary
 java.lang.Object onMessage(Message msg)
          Delivers a message from the channel to the application.
 

Method Detail

onMessage

java.lang.Object onMessage(Message msg)
Delivers a message from the channel to the application. To use this listener together with the Services, a cookie must be returned by the application.

Parameters:
msg - The message received from the channel.
Returns:
the cookie of the message.

jGCS Documentation

Copyright (c) 2006, Universidade de Lisboa
For updates and related information please see jGCS home page