...
The above topology is configured to use ring buffer channels as follows:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<composite ...>
<channel name="IncomingChannel" type="ring.buffer">
<f3:binding.zeromq addresses="192.0.2:2024"/>
</channel>
<channel name="OutgoingChannel" type="ring.buffer">
<f3:binding.zeromq addresses="190.0.1:2024"/>
</channel>
<component name="Component1">
<implementation.java class="..."/>
<consumer name="channel" source="IncomingChannel"/>
</component>
<component name="Component1">
<implementation.java class="..."/>
<producer name="channel" target="OutgoingChannel"/>
</component>
</composite>
|
In this model, messages are read from a ZeroMQ socket on a thread and placed in a ring buffer slot