UI Event Publisher
UI event publisher is an internal event publisher that comes with WSO2 products by default. You can configure it with WSO2Event output mapping types.
Configuring global properties
The following global properties can be set for the UI event publisher type in the <CEP_HOME>/repository/conf/input-event-adapters.xml
file. These properties apply to all the publishers of the ui
type. If a global property available by default is removed, the default value of the property is considered.
Property Key | Description | Data Type | Default Value |
---|---|---|---|
eventQueueSize | The maximum number of events allowed in the adapter queue when the rate at which a UI publisher receives events to be published higher than the rate at which the relevant UI is accepting the events. When the number of events received by the publisher exceeds the value specified for this property, the publisher stops accepting events until the events that are already in the queue get published. Therefore, if you want to reduce system latency, a higher queue size should be specified. | Integer | 30 |
minThread | The minimum number of threads (including idle threads) that should be available in the thread pool at a given time. | Integer | 8 |
maxThread | The maximum number of threads (including idle threads) that should be available in the thread pool at a given time. | Integer | 100 |
keepAliveTimeInMillis | The maximum number of milliseconds that idle threads should be kept alive when the total number of threads in the pool exceeds the number of cores in the machine. | Integer | 20000 |
jobQueueSize | The maximum number of milliseconds that idle threads should be kept alive when the total number of threads in the pool exceeds the number of cores in the machine. | Integer | 10000
|
Configuring a UI event publisher
A UI event publisher can be configured using the Management Console or a configuration file.
Once the publisher is successfully added, it will be displayed in the Available Event Publishers page. You can click Edit to change its configuration and redeploy it. This opens an XML-based editor allowing you to edit the event adapter configurations from the UI. Make your modifications and click Update. You can also delete it, enable/disable statistics or enable/disable tracing on it using the provided options in the UI.
Related samples
For more information on ui
event publisher type, see the following sample.