Versions Compared

Key

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

...

For instructions on creating a HTTP event receiver, see Receiving Events.  Configuring Event Receivers.

Configuring global properties

The following global properties can be set for the HTTP event receiver type in the <CEP_HOME>/repository/conf/input-event-adapters.xml file. These properties apply to all the receivers of the HTTP type. If a global property available by default is removed, the default value of the property is considered.

Property KeyDescriptionData TypeDefault Value
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 size of the queue that is used to hold events before they are forwarded to the event stream.Integer10000

Configuring adapter properties

...

Code Block
<eventReceiver name="HTTPInputEventAdapterhttpReceiver" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
    <from eventAdapterType="http">
        <property name="transports">https</property>
    </from>
   ............................
</eventReceiver>

...

Adapter propertyDescriptionConfiguration file propertyExample

Transport(s)

Transport type via which the events are received.
transports
https

Related samples

For more information on http event receiver type, see the following samples.