gcs
Interface GcsBasicMessageListener
- All Known Subinterfaces:
- SpreadGcsBasicMessageListener
public interface GcsBasicMessageListener
An object implementing the GcsBasicMessageListener interface can act as a
listener for regular messages sent through the RestGroups communication
system. When the object adds itself to a GcsConnection with
GcsConnection.add(GcsBasicMessageListener)
messageReceived(GcsMessage)
will be invoked
every time a regular message is received. Membership messages are omitted.
The listener can be unregistered by calling
GcsConnection.remove(GcsBasicMessageListener)
.
- Author:
- tkob
messageReceived
void messageReceived(GcsMessage message)
throws GcsException
- If an object implementing the GcsBasicMessageListener listener and
registered to a GcsConnection with
GcsConnection.add(GcsBasicMessageListener)
receives a regular
message, this method is invoked.
- Parameters:
message
- the message which has been received
- Throws:
GcsException