|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteneter.messaging.messagingsystems.synchronousmessagingsystem.SynchronousMessagingSystemFactory
public class SynchronousMessagingSystemFactory
Messaging system delivering messages synchronously within the calling thread (like a method call).
It creates output and input channels using the caller thread to deliver messages.
It means e.g. if the output channel calls sendMessage(...) then when the input channel receives the message
in the same thread.
Different instances of SynchronousMessagingSystemFactory are independent and so they
are different messaging systems. Therefore if you want to send/receive a message through this messaging system
then output and input channels must be created with the same instance of SynchronousMessagingSystemFactory.
Constructor Summary | |
---|---|
SynchronousMessagingSystemFactory()
Constructs the factory representing the messaging system. |
|
SynchronousMessagingSystemFactory(IProtocolFormatter protocolFormatter)
Constructs the factory representing the messaging system. |
Method Summary | |
---|---|
IDuplexInputChannel |
createDuplexInputChannel(java.lang.String channelId)
Creates the duplex input channel listening to messages on the specified channel id. |
IDuplexOutputChannel |
createDuplexOutputChannel(java.lang.String channelId)
Creates the duplex output channel communicating with the specified duplex input channel using synchronous local call. |
IDuplexOutputChannel |
createDuplexOutputChannel(java.lang.String channelId,
java.lang.String responseReceiverId)
Creates the duplex output channel communicating with the specified duplex input channel using synchronous local call. |
IThreadDispatcherProvider |
getInputChannelThreading()
Gets threading mode used for input channels. |
IThreadDispatcherProvider |
getOutputChannelThreading()
Gets threading mode used for output channels. |
SynchronousMessagingSystemFactory |
setInputChannelThreading(IThreadDispatcherProvider inputChannelThreading)
Sets threading mode for input channels. |
SynchronousMessagingSystemFactory |
setOutputChannelThreading(IThreadDispatcherProvider outputChannelThreading)
Sets threading mode for output channels. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchronousMessagingSystemFactory()
public SynchronousMessagingSystemFactory(IProtocolFormatter protocolFormatter)
protocolFormatter
- formatter used to encode low-level messages between channelsMethod Detail |
---|
public IDuplexOutputChannel createDuplexOutputChannel(java.lang.String channelId) throws java.lang.Exception
createDuplexOutputChannel
in interface IMessagingSystemFactory
channelId
- address of the input channel.
java.lang.Exception
public IDuplexOutputChannel createDuplexOutputChannel(java.lang.String channelId, java.lang.String responseReceiverId) throws java.lang.Exception
createDuplexOutputChannel
in interface IMessagingSystemFactory
channelId
- address of the input channel.responseReceiverId
- unique identifier of the output channel. If the value is null then the identifier is genearated automatically
java.lang.Exception
public IDuplexInputChannel createDuplexInputChannel(java.lang.String channelId) throws java.lang.Exception
createDuplexInputChannel
in interface IMessagingSystemFactory
channelId
- address of the input channel.
java.lang.Exception
public SynchronousMessagingSystemFactory setInputChannelThreading(IThreadDispatcherProvider inputChannelThreading)
inputChannelThreading
- threading model
public IThreadDispatcherProvider getInputChannelThreading()
public SynchronousMessagingSystemFactory setOutputChannelThreading(IThreadDispatcherProvider outputChannelThreading)
outputChannelThreading
-
public IThreadDispatcherProvider getOutputChannelThreading()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |