service
Interface IBroadcast

All Known Implementing Classes:
BasicBroadcastService, ReliableBroadcastService

public interface IBroadcast

Common interface for all broadcast implementation.


Method Summary
 Message asynchDeliver()
          Deliver asynchronously the last available received message.
 boolean availableMessage()
           
 void broadcast(java.lang.Object data)
          Broadcast data to all processes of the system.
 Message synchDeliver()
          Deliver synchronously the last available received message.
 

Method Detail

broadcast

void broadcast(java.lang.Object data)
               throws CommunicationException
Broadcast data to all processes of the system.

Parameters:
data - the data to be sent
Throws:
CommunicationException - in case of problem

synchDeliver

Message synchDeliver()
Deliver synchronously the last available received message. If no message is available, wait for the next one.

Returns:
the last received message

asynchDeliver

Message asynchDeliver()
Deliver asynchronously the last available received message. If no message is available, return null immediatly.

Returns:
the last received message or null if none

availableMessage

boolean availableMessage()
Returns:
true if one received message is available, false otherwise