See: Description
Class | Description |
---|---|
BufferedMonitoredMessagingFactory |
This messaging combines buffered and monitored messaging.
|
// Create TCP messaging system.
IMessagingSystemFactory anUnderlyingMessaging = new TcpMessagingSystemFactory();
// Create monitored messaging which takes TCP as underlying messaging.
IMessagingSystemFactory aMonitoredMessaging = new MonitoredMessagingFactory(anUnderlyingMessaging);
// Create messaging with authenticated connection.
// It takes monitored messaging as the underlying messaging.
IMessagingSystemFactory aMessaging = new AuthenticatedMessagingFactory(aMonitoredMessaging, ...);
// Creating channels.
IDuplexInputChannel anInputChannel = aMessaging.createDuplexInputChannel("tcp://127.0.0.1:8095/");
IDuplexInputChannel anOutputChannel = aMessaging.createDuplexOutputChannel("tcp://127.0.0.1:8095/");