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.core.runtime.IAdaptable |
getAdapter |
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
groupmessage
- the byte [] message to send. Must not be null
.
- Throws:
ECFException
- if some problem sending message