org.eclipse.ecf.datashare
Interface IChannel

All Superinterfaces:
IAbstractChannel, org.eclipse.core.runtime.IAdaptable, IIdentifiable
All Known Implementing Classes:
BaseChannel, NIOChannel

public interface IChannel
extends IAbstractChannel

Channel for sending messages


Method Summary
 void sendMessage(byte[] message)
          Send message to remote instances of this channel
 void sendMessage(ID receiver, byte[] message)
          Send message to remote instances of this channel
 
Methods inherited from interface org.eclipse.ecf.datashare.IAbstractChannel
dispose, getListener, setListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.ecf.core.identity.IIdentifiable
getID
 

Method Detail

sendMessage

void sendMessage(byte[] message)
                 throws ECFException
Send message to remote instances of this channel

Parameters:
message - the byte [] message to send. Must not be null.
Throws:
ECFException - if some problem sending message

sendMessage

void sendMessage(ID receiver,
                 byte[] message)
                 throws ECFException
Send message to remote instances of this channel

Parameters:
receiver - the ID of the container to receive message. If null, message sent to all current members of group
message - the byte [] message to send. Must not be null.
Throws:
ECFException - if some problem sending message