In general, you should be able to configure a queue component just by specifying a list of listeners, as shown in the previous example. There are, however, two additional properties you might want to change:

initialCapacity

This property sets the initial size of the queue, specifying how many elements can be queued up before the queue has to resize itself. The queue will automatically resize itself, so it is usually not necessary to set this property. Its default value is 16. For example:

initialCapacity=32
threadCount

This property specifies the number of Threads that are to pull events from the queue. By default, this is set to 1. You may wish to increase this number if it makes sense to handle multiple events in parallel, and if you are not concerned with the order in which events are handled. This value should always be set to at least 1.

 
loading table of contents...