org.sadun.util
Interface Broadcaster


public interface Broadcaster

A general interface for mechanisms that can broadcast messages to a given context (for example, across multiple threads, processes, hosts, networks, etc).

Author:
Cristiano Sadun

Nested Class Summary
static class Broadcaster.BroadcastingException
           
 
Method Summary
 void broadCast(java.lang.Object obj)
          Broadcast the given object.
 void dispose()
          Dispose of any resource used by this object
 

Method Detail

broadCast

public void broadCast(java.lang.Object obj)
               throws Broadcaster.BroadcastingException
Broadcast the given object.

Parameters:
obj - the object to broadcast
Throws:
Broadcaster.BroadcastingException - if the broadcast fails

dispose

public void dispose()
             throws Broadcaster.BroadcastingException
Dispose of any resource used by this object

Throws:
Broadcaster.BroadcastingException