Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

UI event publisher is an internal event publisher that comes with WSO2 products by default. You can configure it with WSO2Event  output mapping types.

Table of Contents
maxLevel3

Creating an UI event publisher

For instructions on creating an UI event publisher, see  Creating Alerts .

Configuring global properties

The following global properties can be set for the UI event publisher type in the <DAS_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 KeyDescriptionData TypeDefault Value
eventQueueSizeThe 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.Integer30
minThreadThe minimum number of threads (including idle threads) that should be available in the thread pool at a given time.Integer8
maxThreadThe maximum number of threads (including idle threads) that should be available in the thread pool at a given time.Integer100
keepAliveTimeInMillisThe 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.Integer20000
jobQueueSizeThe 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.Integer10000

Configuring adapter properties

There are not any adapter-specific properties for the UI event publisher as shown below.

UI event publisherImage Added

Related samples

For more information on ui event publisher type, see the following sample in CEP Documentation.