...
Info | ||
---|---|---|
| ||
|
For a sample that demonstrates how an HTTP inbound endpoint can act as a dynamic http listener, see Sample 902: HTTP Inbound Endpoint Sample
Worker pool configuration parameters
...
Parameter | Description | Default Value |
---|---|---|
| The initial number of threads in the worker thread pool. This value can be changed accordingly based on the number of messages to be processed. The maximum value that can be specified here is the value of the inbound.worker.pool.size.max parameter. | 400 |
| The maximum number of threads in the worker thread pool. Specify a maximum limit in order to avoid performance degradation that can occur due to context switching. | 500 |
| The keep-alive time for extra threads in the worker pool. This value should be less than the socket timeout. When this time is elapsed for an extra thread, it will be destroyed. The purpose of this parameter is to optimize the usage of resources by avoiding wastage that results from having extra threads that are not utilized. | 60 |
| The length of the queue that is used to hold runnable tasks to be executed by the worker pool. The thread pool starts queuing jobs when all existing threads are busy and the pool has reached the maximum number of threads. The value for this parameter should be -1 to use an unbounded queue. If a bound queue is used and the queue gets filled to its capacity, and any further attempt to submit jobs will fail causing synapse to drop some messages. | -1 |
| Unique Identifier of the thread group. | PassThrough inbound worker thread group |
| Unique Identifier of the thread. | PassThroughInboundWorkerThread |
dispatch.filter.pattern | The regular expression that defines the proxy services and API's to expose via the inbound endpoint. Provide the .* expression to expose all proxy services and API's or provide an expression similar to ^(/foo|/bar|/services/MyProxy)$ to define a set of services to expose via the inbound endpoint. If you do not provide an expression only the defined sequence of the inbound endpoint will be accessible. | blank |
...
Code Block |
---|
<proxy xmlns="http://ws.apache.org/ns/synapse" name="InboundProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <outSequence> <send/> </outSequence> <endpoint> <address uri="http://localhost:9773/services/HelloService/"/> </endpoint> </target> <parameter name="inbound.only">true</parameter> </proxy> |
Samples
For a sample that demonstrates how a HTTP inbound endpoint can act as a dynamic http listener, see Sample 902: HTTP Inbound Endpoint Sample.