eneter.messaging.infrastructure.attachable
Interface IAttachableMultipleDuplexInputChannels

All Known Subinterfaces:
IDuplexChannelWrapper, IDuplexDispatcher

public interface IAttachableMultipleDuplexInputChannels

Interface for components which want to attach multiple IDuplexInputChannel. Communication components implementing this interface can attach multiple duplex input channels and listens via them to messages.


Method Summary
 void attachDuplexInputChannel(IDuplexInputChannel duplexInputChannel)
          Attaches the duplex input channel and starts listening to messages.
 void detachDuplexInputChannel()
          Detaches the duplex input channel.
 void detachDuplexInputChannel(java.lang.String channelId)
          Detaches the duplex input channel.
 java.lang.Iterable<IDuplexInputChannel> getAttachedDuplexInputChannels()
          Returns attached input channels.
 boolean isDuplexInputChannelAttached()
          Returns true if the duplex input channel is attached.
 

Method Detail

attachDuplexInputChannel

void attachDuplexInputChannel(IDuplexInputChannel duplexInputChannel)
                              throws java.lang.Exception
Attaches the duplex input channel and starts listening to messages.

Parameters:
duplexInputChannel -
Throws:
java.lang.Exception
See Also:
IDuplexInputChannel

detachDuplexInputChannel

void detachDuplexInputChannel()
Detaches the duplex input channel. Detaching the input channel stops listening to the messages.


isDuplexInputChannelAttached

boolean isDuplexInputChannelAttached()
Returns true if the duplex input channel is attached.


detachDuplexInputChannel

void detachDuplexInputChannel(java.lang.String channelId)
                              throws java.lang.Exception
Detaches the duplex input channel. Detaching the input channel stops listening to the messages. It releases listening threads.

Parameters:
channelId -
Throws:
java.lang.Exception

getAttachedDuplexInputChannels

java.lang.Iterable<IDuplexInputChannel> getAttachedDuplexInputChannels()
Returns attached input channels.

See Also:
IDuplexInputChannel