public class HttpMessagingSystemFactory extends java.lang.Object implements IMessagingSystemFactory
Constructor and Description |
---|
HttpMessagingSystemFactory()
Constructs the factory that will create channels with default settings.
|
HttpMessagingSystemFactory(int pollingFrequency,
int inactivityTimeout)
Constructs the factory that will create channel with specified settings.
|
HttpMessagingSystemFactory(int pollingFrequency,
int inactivityTimeout,
IProtocolFormatter protocolFormatter)
Constructs the factory that will create channel with specified settings.
|
Modifier and Type | Method and Description |
---|---|
IDuplexInputChannel |
createDuplexInputChannel(java.lang.String channelId)
Creates the duplex input channel which can receive and send messages to the duplex output channel using UDP.
|
IDuplexOutputChannel |
createDuplexOutputChannel(java.lang.String channelId)
Creates duplex output channel which can send and receive messages from the duplex input channel using HTTP.
|
IDuplexOutputChannel |
createDuplexOutputChannel(java.lang.String channelId,
java.lang.String responseReceiverId)
Creates duplex output channel which can send and receive messages from the duplex input channel using HTTP.
|
IThreadDispatcherProvider |
getInputChannelThreading()
Gets threading mode used for input channels.
|
IThreadDispatcherProvider |
getOutputChannelThreading()
Gets threading mode used for output channels.
|
HttpMessagingSystemFactory |
setInputChannelThreading(IThreadDispatcherProvider inputChannelThreading)
Sets threading mode for input channels.
|
HttpMessagingSystemFactory |
setOutputChannelThreading(IThreadDispatcherProvider outputChannelThreading)
Sets threading mode for output channels.
|
public HttpMessagingSystemFactory()
public HttpMessagingSystemFactory(int pollingFrequency, int inactivityTimeout)
pollingFrequency
- how often the duplex output channel polls for the pending response messagesinactivityTimeout
- maximum time (measured by duplex input channel),
the duplex output channel does not have to poll
for response messages. If the time is exceeded, the duplex output channel is considered as disconnected.public HttpMessagingSystemFactory(int pollingFrequency, int inactivityTimeout, IProtocolFormatter protocolFormatter)
pollingFrequency
- how often the duplex output channel polls for the pending response messagesinactivityTimeout
- maximum time (measured by duplex input channel),
the duplex output channel does not have to poll
for response messages. If the time is exceeded, the duplex output channel is considered as disconnected.protocolFormatter
- formatter for low-level messages between duplex output channel and duplex input channelpublic 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 automaticallyjava.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 HttpMessagingSystemFactory setInputChannelThreading(IThreadDispatcherProvider inputChannelThreading)
inputChannelThreading
- threading modelpublic IThreadDispatcherProvider getInputChannelThreading()
public HttpMessagingSystemFactory setOutputChannelThreading(IThreadDispatcherProvider outputChannelThreading)
outputChannelThreading
- public IThreadDispatcherProvider getOutputChannelThreading()