All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sapia.ubik.mcast.BroadcastDispatcher Maven / Gradle / Ivy

The newest version!
package org.sapia.ubik.mcast;

import java.io.IOException;


/**
 * An instance of this interface dispatches multicast events.
 *
 * @author Yanick Duchesne
 * 
*
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
*
License:
Read the license.txt file of the jar or visit the * license page at the Sapia OSS web site
*
*/ public interface BroadcastDispatcher { /** * Dispatches a multicast event holding the given parameters. * * @param alldomains if true sends an event to all domains. * @param id the logical identifier of the event. * @param data the data that is encapsulated within the event. * @throws IOException if an IO problem occurs. */ public void dispatch(boolean alldomains, String id, Object data) throws IOException; /** * Dispatches a multicast event to the given domain. * * @param domain the domain to dispatch the event to. * @param id the logical identifier of the event. * @param data the data that is encapsulated within the event. * @throws IOException if an IO problem occurs. */ public void dispatch(String domain, String id, Object data) throws IOException; /** * Sets this instance's "buffer size". The size is specified in bytes, and can * be interpreted differently from one implementation to another - for example, for * UDP-based implementation, it can correspond to the datagram packet size. * * @param the size of this instance's internal buffer, in bytes. */ public void setBufsize(int size); /** * Starts this instance - must be called prior to using this instance. */ public void start(); /** * Closes this instance, which can't be used thereafter. */ public void close(); /** * Returns the node identifier of this instance. * * @return this instance's node identifier. */ public String getNode(); /** * Returns this instance's multicast port. * * @return a multicast port. */ public int getMulticastPort(); /** * Returns this instance's multicast address. * * @return a multicast address string. */ public String getMulticastAddress(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy