net.sf.cscc
Interface DataEventReceivingObserver

All Known Implementing Classes:
ChatServer, ChatClient, Client, Server, TestClient5, TestClient, TestServer, TestServer4, TestClient2, TestServer1, TestClient3, TestServer5, TestClient6, TestServer3, TestClient1, TestServer6, TestServer2, TestClient4

public interface DataEventReceivingObserver
extends DataEventBaseObserver

This interface has to be implemented by observers which want to be notified about new events in the event queue. Implementing this interface causes a notification with the delivery of the data event itself. If all observer are implementing this interface instead of the DataEventReceivingObserver interface, it is assumed that the observer directly consumes and processes the data event immediately during the call and the event is therefore automatically after the delivery to all observers removed from the incoming event queue.

Author
Silvio Meier (SM)

Copyright
Silvio Meier, Tobias Reinhard, 2003

History
2003-05-09 SM First Version
2003-05-14 SM working on additional methods and events,
correction of some comments.

Version
$Date: 2007/07/02 21:26:17 $, $Author: reode_orm $, $Revision: 1.2 $

Responsibilities
Provides an interface for an data event observer call.

Invariant
-


Method Summary
 void receiveEvent(DataEvent de)
          This interface method is called by objects of the DataEventObservable class.
 

Method Detail

receiveEvent

public void receiveEvent(DataEvent de)
This interface method is called by objects of the DataEventObservable class. The implenting class has to register at the specific object of the class DataEventObservable to get notifications about new data events in the event queue. The implementing class gets the specific data event directly as argument of the method.
Pre
true
Post
true

See Also
DataEventObserver.receiveEvent()


Copyright © 2003, Silvio Meier and Tobias Reinhard. All Rights Reserved.