eneter.messaging.messagingsystems.messagingsystembase
Interface IMessagingSystemFactory

All Known Implementing Classes:
AndroidUsbCableMessagingFactory, AuthenticatedMessagingFactory, BufferedMessagingFactory, BufferedMonitoredMessagingFactory, HttpMessagingSystemFactory, MessageBusMessagingFactory, MonitoredMessagingFactory, SynchronousMessagingSystemFactory, TcpMessagingSystemFactory, ThreadMessagingSystemFactory, ThreadPoolMessagingSystemFactory, UdpMessagingSystemFactory, WebSocketMessagingSystemFactory

public interface IMessagingSystemFactory

Represents messaging providing output and input channels for the communication. This factory interface is supposed to be implemented by all messaging systems. Particular messaging systems provides implementations for output and input channels using their transportation mechanisms. E.g. for TCP, Websockets, ... .


Method Summary
 IDuplexInputChannel createDuplexInputChannel(java.lang.String channelId)
          Creates the input channel which can receive and send messages to the output channel.
 IDuplexOutputChannel createDuplexOutputChannel(java.lang.String channelId)
          Creates the output channel which can sends and receive messages from the input channel.
 IDuplexOutputChannel createDuplexOutputChannel(java.lang.String channelId, java.lang.String responseReceiverId)
          Creates the output channel which can sends and receive messages from the input channel.
 

Method Detail

createDuplexOutputChannel

IDuplexOutputChannel createDuplexOutputChannel(java.lang.String channelId)
                                               throws java.lang.Exception
Creates the output channel which can sends and receive messages from the input channel.

Parameters:
channelId - address of the input channel.
Returns:
output channel
Throws:
java.lang.Exception

createDuplexOutputChannel

IDuplexOutputChannel createDuplexOutputChannel(java.lang.String channelId,
                                               java.lang.String responseReceiverId)
                                               throws java.lang.Exception
Creates the output channel which can sends and receive messages from the input channel.

Parameters:
channelId - address of the input channel.
responseReceiverId - unique identifier of the output channel. If the value is null then the identifier is genearated automatically
Returns:
duplex output channel
Throws:
java.lang.Exception

createDuplexInputChannel

IDuplexInputChannel createDuplexInputChannel(java.lang.String channelId)
                                             throws java.lang.Exception
Creates the input channel which can receive and send messages to the output channel.

Parameters:
channelId - address of the input channel.
Returns:
input channel
Throws:
java.lang.Exception