public interface IChannelContainerAdapter extends IAbstractChannelContainerAdapter
IChannelContainerAdapter channelcontainer = (IChannelContainerAdapter) container.getAdapter(IChannelContainerAdapter.class);
if (channelcontainer != null) {
// use channelcontainer
...
} else {
// container does not support channel container functionality
}
| Modifier and Type | Method and Description |
|---|---|
IChannel |
createChannel(IChannelConfig newChannelConfig)
Create a new channel within this container
|
IChannel |
createChannel(ID channelID,
IChannelListener listener,
Map properties)
Create a new channel within this container
|
addListener, getChannel, getChannelNamespace, removeChannel, removeListenerIChannel createChannel(ID channelID, IChannelListener listener, Map properties) throws ECFException
channelID - the ID of the new channel. Must not be null.listener - a listener for receiving messages from remotes for this
channel. May be null if no listener is to be
notified.properties - a Map of properties to provide to the channel. May be
null.ECFException - if some problem creating IChannel instanceIChannel createChannel(IChannelConfig newChannelConfig) throws ECFException
newChannelConfig - the configuration for the newly created channel. Must not be
null.null.ECFException - if some problem creating IChannel instanceCopyright © 2018 Eclipse Foundation. All rights reserved.