queueServiceOutputs
property allows to specify that the content of the buffers must be enqueued in a FIFO queue which will be processed one buffer at a time. The queueServiceOutputsSize
property specifies the size of the queue.<channel name="event" type="input" port="8080"> <outputServiceQueue queueType="queue" queueSize="10" /> <service name="published" /> </channel>
queueServiceInputs
property allows to specify that the content of the buffers must be enqueued in a FIFO queue which will be processed one buffer at a time. The queueServiceInputsSize
property specifies the size of the queue.<channel name="event" type="output" port="8080"> <inputServiceQueue queueType="queue" queueSize="10" /> <service name="published" /> </channel>
invokeCopy
property specifies if services coming from the network should be cloned before they are called.
queueServiceOutputs
and the invokeCopy
properties to be sure that:<properties> <application name="externalComm" > <module name="externalComm" > <moduleProperty key="network" value="networkEvent.xml" /> <moduleProperty key="queueServiceOutputs" value="true" /> <moduleProperty key="queueServiceOutputsSize" value="20" /> <moduleProperty key="invokeCopy" value="true" /> </module> </application> </properties>If you send a lot of buffers to the network at a rapid pace, you may need to specifiy both the
queueServiceInputs
property. For example, at the module level:<properties> <application name="externalComm" > <module name="externalComm" > <moduleProperty key="network" value="networkEvent.xml" /> <moduleProperty key="queueServiceInputs" value="true" /> <moduleProperty key="queueServiceInputsSize" value="20" /> </module> </application> </properties>
<properties> <application name="externalComm" > <module name="externalComm" > <moduleProperty key="network" value="networkEvent.xml" /> <moduleProperty key="queueServiceOutputs" value="true" /> <moduleProperty key="queueServiceOutputsSize" value="20" /> <moduleProperty key="queueServiceInputs" value="true" /> <moduleProperty key="queueServiceInputsSize" value="20" /> <moduleProperty key="invokeCopy" value="true" /> </module> </application> </properties>For one Channel:
<channel name="event" type="input" port="8080" invokeCopy="true"> <outputServiceQueue queueType="queue" queueSize="10" /> <service name="published" /> </channel>or:
<channel name="event" type="output" port="8080"> <inputServiceQueue queueType="queue" queueSize="10" /> <service name="published" /> </channel>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence